25 lines
1.4 KiB
Go
25 lines
1.4 KiB
Go
package requests
|
||
|
||
type UserCouponRequest struct {
|
||
GetUserCouponPage // 获取优惠卷列表-分页
|
||
}
|
||
|
||
// GetUserCouponPage 获取优惠卷列表-分页
|
||
type GetUserCouponPage struct {
|
||
Page int `json:"page" form:"page" label:"页码"`
|
||
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
|
||
UserId int64 `json:"user_id" form:"user_id" label:"用户id"`
|
||
CouponId string `json:"coupon_id" form:"coupon_id" label:"优惠券id"`
|
||
UserCouponStatus *int `json:"user_coupon_status" form:"user_coupon_status" label:"状态"` // 状态(0:未使用 1:已使用 3:已过期)
|
||
IsWindows *int `json:"is_windows" form:"is_windows" label:"是否已弹窗"` // 是否已弹窗(0:否 1:是)
|
||
CouponUseDate string `json:"coupon_use_date" form:"coupon_use_date" label:"使用时间"` // 假设转换为字符串格式
|
||
ValidStartTime string `json:"valid_start_time" form:"valid_start_time" label:"有效开始时间"` // 同上
|
||
ValidEndTime string `json:"valid_end_time" form:"valid_end_time" label:"有效结束时间"` // 同上
|
||
}
|
||
|
||
// GetUserUsableCoupon 获取用户当前可用优惠卷
|
||
type GetUserUsableCoupon struct {
|
||
UserId int64 `json:"user_id" form:"user_id" label:"用户id"`
|
||
UserCouponStatus *int `json:"user_coupon_status" form:"user_coupon_status" label:"状态"` // 状态(0:未使用 1:已使用 3:已过期)
|
||
}
|