interfaces.go 713 B

123456789101112131415161718192021222324252627
  1. package microsite
  2. import (
  3. "io"
  4. "github.com/qor/oss"
  5. )
  6. type MicroSiteInterface interface {
  7. GetID() uint
  8. GetVersionName() string
  9. GetUnixKey() string
  10. SetUnixKey()
  11. GetStatus() string
  12. GetPackagePath(fileName string) string
  13. GetPackageUrl(domain string) string
  14. GetPreviewPath(fileName string) string
  15. GetPreviewUrl(domain, fileName string) string
  16. GetPublishedPath(fileName string) string
  17. GetPublishedUrl(domain, fileName string) string
  18. GetFileList() (arr []string)
  19. SetFilesList(filesList []string)
  20. GetPackage() FileSystem
  21. SetPackage(fileName, url string)
  22. UnArchiveAndPublish(getPath func(string) string, fileName string, f io.Reader, storage oss.StorageInterface) (filesList []string, err error)
  23. }