owner.go 820 B

12345678910111213141516171819202122232425262728
  1. package request
  2. import "time"
  3. type OwnerCreate struct {
  4. OwnerName string `json:"owner_name"`
  5. OwnerSurname string `json:"owner_surname"`
  6. OwnerPhone string `json:"owner_phone"`
  7. IsVip bool `json:"is_vip"`
  8. VipExpireTime time.Time `json:"vip_expire_time"`
  9. }
  10. type OwnerUpdate struct {
  11. ID uint `json:"id"`
  12. OwnerName string `json:"owner_name"`
  13. OwnerSurname string `json:"owner_surname"`
  14. OwnerPhone string `json:"owner_phone"`
  15. IsVip bool `json:"is_vip"`
  16. VipExpireTime time.Time `json:"vip_expire_time"`
  17. }
  18. type OwnerQuery struct {
  19. OwnerName string `form:"owner_name"`
  20. OwnerPhone string `form:"owner_phone"`
  21. IsVip *bool `form:"is_vip"`
  22. Page int `form:"page,default=1"`
  23. PageSize int `form:"page_size,default=10"`
  24. }