common.go 775 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package common
  2. const (
  3. //NotDeleted db not deleted
  4. NotDeleted = 0
  5. //Deleted db deleted
  6. Deleted = 1
  7. //Verify 待审核
  8. Verify = 1
  9. //Pass 已通过
  10. Pass = 2
  11. //Rejecte 已拒绝
  12. Rejecte = 3
  13. //Valid 已生效
  14. Valid = 4
  15. //InValid 已失效
  16. InValid = 5
  17. //StatusOnline status online
  18. StatusOnline = 1
  19. //StatusDownline status downline
  20. StatusDownline = 0
  21. //OptionOnline option online
  22. OptionOnline = "online"
  23. //OptionHidden option downline
  24. OptionHidden = "hidden"
  25. //OptionPass option pass
  26. OptionPass = "pass"
  27. //OptionReject option reject
  28. OptionReject = "reject"
  29. )
  30. //Page pager
  31. type Page struct {
  32. Num int `json:"num"`
  33. Size int `json:"size"`
  34. Total int `json:"total"`
  35. }
  36. //CardPreview card preview
  37. type CardPreview struct {
  38. Title string `json:"title"`
  39. }