123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package v1
- import (
- "demo/internal/model/entity"
- "github.com/gogf/gf/v2/frame/g"
- )
- type CreateReq struct {
- g.Meta `path:"/product_rule" method:"post" tags:"product_rule" summary:"Create product_rule"`
- ActiviteId *int `v:"required" dc:"活动id"`
- ProductInfoId *int `v:"required" dc:"活动奖励对应的剑鱼产品id product_info的id"`
- PrizeId *int `v:"required" dc:"活动奖品信息表lottery_prize_info的id"`
- State *int `v:"required" dc:"是否可用;默认0:可用;1:不可用"`
- Cycle *int `v:"required" dc:"可兑换周期(单位天): 90"`
- }
- type CreateRes struct {
- }
- type UpdateReq struct {
- g.Meta `path:"/product_rule/{id}" method:"put" tags:"Activity" summary:"Update activity"`
- Id *int `v:"required" dc:"赠送规则id"`
- ActiviteId *int ` dc:"活动id"`
- ProductInfoId *int ` dc:"活动奖励对应的剑鱼产品id product_info的id"`
- PrizeId *int ` dc:"活动奖品信息表lottery_prize_info的id"`
- State *int ` dc:"是否可用;默认0:可用;1:不可用"`
- Cycle *int ` dc:"可兑换周期(单位天): 90"`
- }
- type UpdateRes struct{}
- type GetListReq struct {
- g.Meta `path:"/product_rule" method:"get" tags:"product_rule" summary:"Get product_rule"`
- ActiviteId *int ` dc:"活动id"`
- Offset int `d:"0" dc:"分页开始条数"`
- Limit int `d:"10" dc:"每页条数"`
- }
- type GetListRes struct {
- List []*entity.ActivityInfo `json:"list" dc:"product_rule list"`
- Total int `json:"total" dc:"product_rule list total"`
- }
- type DelReq struct {
- g.Meta `path:"/product_rule/{id}" method:"delete" tags:"product_rule" summary:"Update product_rule"`
- Id *int64 ` v:"required" dc:"product_rule id"`
- }
- type DelRes struct {
- }
|