operation.go 537 B

12345678910111213141516171819202122232425262728
  1. package operation
  2. // Types
  3. var (
  4. Types = []string{
  5. "uptool",
  6. "promote",
  7. }
  8. )
  9. // Operation struct
  10. type Operation struct {
  11. ID int64 `json:"-"`
  12. Type string `json:"-"`
  13. Message string `json:"message"`
  14. Link string `json:"link"`
  15. Pic string `json:"pic,omitempty"`
  16. Ads int `json:"ads,omitempty"`
  17. Rank int `json:"rank"`
  18. Aid int64 `json:"-"`
  19. }
  20. // ArgOp ArgOp
  21. type ArgOp struct {
  22. Tp string `form:"tp"`
  23. Count int `form:"count" validate:"min=0"`
  24. Rank int `form:"rank" validate:"min=0"`
  25. }