app.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package v1
  2. import (
  3. "go-common/app/interface/bbq/app-bbq/model"
  4. "go-common/library/time"
  5. )
  6. // AppSettingRequest .
  7. type AppSettingRequest struct {
  8. Base
  9. VersionCode int `json:"version_code" form:"version_code" validate:"required"`
  10. }
  11. // AppUpdate .
  12. type AppUpdate struct {
  13. NewVersion uint8 `json:"new_version"`
  14. Info *model.AppVersion `json:"info,omitempty"`
  15. }
  16. // AppSettingResponse .
  17. type AppSettingResponse struct {
  18. Public map[string]interface{} `json:"public"`
  19. Update *AppUpdate `json:"update"`
  20. Resources []*model.AppResource `json:"resources"`
  21. }
  22. // AppPackage .
  23. type AppPackage struct {
  24. ID int64 `json:"id"`
  25. Platform uint8 `json:"platform"`
  26. VersionName string `json:"version_name"`
  27. VersionCode uint32 `json:"version_code"`
  28. Title string `json:"title"`
  29. Content string `json:"content"`
  30. Download string `json:"download"`
  31. MD5 string `json:"md5"`
  32. Size int32 `json:"size"`
  33. Force uint8 `json:"force"`
  34. Status uint8 `json:"status"`
  35. CTime time.Time `json:"ctime"`
  36. }