|
@@ -0,0 +1,54 @@
|
|
|
+package v1
|
|
|
+
|
|
|
+import (
|
|
|
+ "github.com/gogf/gf/v2/frame/g"
|
|
|
+ "github.com/gogf/gf/v2/net/ghttp"
|
|
|
+ "github.com/gogf/gf/v2/os/gtime"
|
|
|
+)
|
|
|
+
|
|
|
+type CreateReq struct {
|
|
|
+ g.Meta `path:"/equity_info" method:"post" tags:"equity_info" summary:"Create equity_info"`
|
|
|
+ ActiveId int `json:"activeId" orm:"active_id" description:"关联活动id"` // 关联活动id
|
|
|
+ PrizeId int `json:"prizeId" dc:"lottery_prize_info---id"`
|
|
|
+ File *ghttp.UploadFile ` json:"file" type:"file" dc:"活动id"`
|
|
|
+ EquityInfoList []struct {
|
|
|
+ SerialNum string `json:"serialNum" dc:"序号"` // 序号
|
|
|
+ Code string `json:"code" dc:"权益码(唯一性)"` // 权益码(唯一性)
|
|
|
+ Name string `json:"name" dc:"权益名称"` // 权益名称
|
|
|
+ ExEndTime *gtime.Time `json:"exEndTime" dc:"兑换截止时间"` // 兑换截止时间
|
|
|
+ } `json:"equity_info_list"`
|
|
|
+}
|
|
|
+type CreateRes struct {
|
|
|
+}
|
|
|
+
|
|
|
+type UpdateReq struct {
|
|
|
+ g.Meta `path:"/equity_info/{id}" method:"put" tags:"equity_info" summary:"Update equity_info"`
|
|
|
+ ActiveId *int `description:"关联活动id"` // 关联活动id
|
|
|
+ PrizeId *int `dc:"lottery_prize_info---id"`
|
|
|
+ NewActiveId *int `description:"新的关联活动id"`
|
|
|
+ NewPrizeId *int `dc:"新的lottery_prize_info---id"`
|
|
|
+ Count *int `dc:"划转过去多少个"`
|
|
|
+}
|
|
|
+type UpdateRes struct{}
|
|
|
+
|
|
|
+// GetListReq 兑换码剩余数量
|
|
|
+type GetListReq struct {
|
|
|
+ g.Meta `path:"/equity_info" method:"get" tags:"equity_info" summary:"Get equity_info"`
|
|
|
+ ActiveId *int `description:"关联活动id"` // 关联活动id
|
|
|
+ PrizeId *int `dc:"lottery_prize_info---id"`
|
|
|
+}
|
|
|
+type EquityInfoCount struct {
|
|
|
+ Name string `dc:"权益名称"` // 权益名称
|
|
|
+ ExEndTime *gtime.Time `dc:"兑换截止时间"` // 兑换截止时间
|
|
|
+ ActiveId *int `description:"关联活动id"` // 关联活动id
|
|
|
+ PrizeId *int `dc:"lottery_prize_info---id"`
|
|
|
+}
|
|
|
+type GetListRes struct {
|
|
|
+ List []*EquityInfoCount `json:"list" dc:"equity_info list"`
|
|
|
+ Total int `json:"total" dc:"equity_info list total"`
|
|
|
+}
|
|
|
+
|
|
|
+//type GetActivityConfigReq struct {
|
|
|
+// g.Meta `path:"/activity-config" method:"get" tags:"ActivityConfig" summary:"Get Activitys config"`
|
|
|
+//}
|
|
|
+//type GetActivityConfigRes map[string]interface{}
|