27 lines
4.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package requests
type CouponRequest struct {
GetSystemCouponPage // 获取系统优惠卷列表-分页
}
// GetSystemCouponPage 获取系统优惠卷列表-分页
type GetSystemCouponPage struct {
Page int `json:"page" form:"page" label:"页码"`
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
CouponName string `json:"coupon_name" form:"coupon_name" label:"优惠卷名称"` // 优惠卷名称
CouponClient *int `json:"coupon_client" form:"coupon_client" label:"使用平台1:小程序)"` // 使用平台1:小程序)
CouponType *int `json:"coupon_type" form:"coupon_type" label:"优惠卷类型1:无门槛 2:满减 3:数量)"` // 优惠卷类型1:无门槛 2:满减 3:数量)
CouponStatus *int `json:"coupon_status" form:"coupon_status" label:"状态1:正常 2:强制失效 3:结束 4:删除)"` // 状态1:正常 2:强制失效 3:结束 4:删除)
DistributionObject *int `json:"distribution_object" form:"distribution_object" label:"发放对象1:全部用户 2:新注册用户 3:会员 4:近期消费 5:近期购药 6:存量用户 7:健康包服务用户)"` // 发放对象1:全部用户 2:新注册用户 3:会员 4:近期消费 5:近期购药 6:存量用户 7:健康包服务用户)
ApplicationScope *int `json:"application_scope" form:"application_scope" label:"适用范围1:全场通用 2:问诊 3:按品牌适用 4:按类别适用 5:单品使用 6:全品类药品)"` // 适用范围1:全场通用 2:问诊 3:按品牌适用 4:按类别适用 5:单品使用 6:全品类药品)
InquiryType string `json:"inquiry_type" form:"inquiry_type" label:"关联问诊类型application_scope=问诊时存在生效逗号分隔1:全部 2:快速问诊 3:专家问诊 4:公益问诊 5:问诊购药 6:检测)"` // 关联问诊类型application_scope=问诊时存在生效逗号分隔1:全部 2:快速问诊 3:专家问诊 4:公益问诊 5:问诊购药 6:检测)
BrandId string `json:"brand_id" form:"brand_id" label:"关联品牌id如不限制品牌此项为空"` // 关联品牌id如不限制品牌此项为空
IsMutex *int `json:"is_mutex" form:"is_mutex" label:"是否互斥0:否 1:是)互斥情况下无法和其他优惠卷同时使用"` // 是否互斥0:否 1:是)互斥情况下无法和其他优惠卷同时使用
IsDisplay *int `json:"is_display" form:"is_display" label:"是否展示0:否 1:是)"` // 是否展示0:否 1:是)
ValidType *int `json:"valid_type" form:"valid_type" label:"有效类型1:绝对时效xxx-xxx时间段有效 2:相对时效 n天内有效"` // 有效类型1:绝对时效xxx-xxx时间段有效 2:相对时效 n天内有效
IsReissuableAfterExpire *int `json:"is_reissuable_after_expire" form:"is_reissuable_after_expire" label:"过期之后是否允许再次发放(0:否 1:是)"` // 过期之后是否允许再次发放(0:否 1:是)
IsPopup *int `json:"is_popup" form:"is_popup" label:"是否首页弹窗0:否 1:是)"` // 是否首页弹窗0:否 1:是)
CouponDesc string `json:"coupon_desc" form:"coupon_desc" label:"优惠卷描述"`
CreatedAt string `json:"created_at" form:"created_at" label:"创建时间"` // 创建时间
}