You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
902 B
25 lines
902 B
package coupon
|
|
|
|
import "github.com/gogf/gf/v2/os/gtime"
|
|
|
|
type GetCouponListReq struct {
|
|
PageNo int `v:"required#页码不能为空" dc:"页码"`
|
|
PageSize int `v:"required#页面大小不能为空" dc:"页面大小"`
|
|
}
|
|
|
|
type GetCouponReq struct {
|
|
Id int `v:"required#卡券id不能为空" dc:"卡券id"`
|
|
}
|
|
|
|
type DeleteCouponReq struct {
|
|
Id int `v:"required#卡券id不能为空" dc:"卡券id"`
|
|
}
|
|
|
|
type InsertCouponReq struct {
|
|
Id int `dc:"卡券id"`
|
|
Title string `v:"required#卡券名字不能为空" dc:"卡券名字"`
|
|
Image string `v:"required#卡券图片不能为空" dc:"卡券图片"`
|
|
Type int `v:"required#卡券类型不能为空" dc:"卡券类型"`
|
|
StartTime *gtime.Time `v:"required#卡券生效时间不能为空" dc:"生效时间"`
|
|
EndTime *gtime.Time `v:"required#卡券失效时间不能为空" dc:"失效时间"`
|
|
}
|