fav.go 743 B

123456789101112131415161718192021222324
  1. package model
  2. import "go-common/app/service/main/favorite/model"
  3. // FavNav fav nav struct.
  4. type FavNav struct {
  5. Archive []*model.VideoFolder `json:"archive"`
  6. Playlist int `json:"playlist"`
  7. Topic int `json:"topic"`
  8. Article int `json:"article"`
  9. Album int `json:"album"`
  10. Movie int `json:"movie"`
  11. }
  12. // FavArcArg .
  13. type FavArcArg struct {
  14. Vmid int64 `form:"vmid" validate:"min=1"`
  15. Fid int64 `form:"fid" validate:"min=-1"`
  16. Tid int64 `form:"tid"`
  17. Keyword string `form:"keyword"`
  18. Order string `form:"order"`
  19. Pn int `form:"pn" default:"1" validate:"min=1"`
  20. Ps int `form:"ps" default:"30" validate:"min=1"`
  21. }