| 12345678910111213141516171819202122232425262728 |
- package request
- import "time"
- type OwnerCreate struct {
- OwnerName string `json:"owner_name"`
- OwnerSurname string `json:"owner_surname"`
- OwnerPhone string `json:"owner_phone"`
- IsVip bool `json:"is_vip"`
- VipExpireTime time.Time `json:"vip_expire_time"`
- }
- type OwnerUpdate struct {
- ID uint `json:"id"`
- OwnerName string `json:"owner_name"`
- OwnerSurname string `json:"owner_surname"`
- OwnerPhone string `json:"owner_phone"`
- IsVip bool `json:"is_vip"`
- VipExpireTime time.Time `json:"vip_expire_time"`
- }
- type OwnerQuery struct {
- OwnerName string `form:"owner_name"`
- OwnerPhone string `form:"owner_phone"`
- IsVip *bool `form:"is_vip"`
- Page int `form:"page,default=1"`
- PageSize int `form:"page_size,default=10"`
- }
|