|
@@ -9,6 +9,7 @@ type Request {
|
|
|
Model int64 `form:"model,optional"` //1查看名下所有奖券 0查看可以使用的奖券(没有过期的) 2过期的奖券
|
|
|
UserName string `form:"userName,optional"` //用户名称
|
|
|
UserLottertId int64 `form:"userLottertId,optional"` //用户奖券标识
|
|
|
+ LotteryId int64 `form:"lotteryId,optional"`
|
|
|
}
|
|
|
|
|
|
type LotteryOperation {
|
|
@@ -40,22 +41,22 @@ type ActivityLotteryResp {
|
|
|
Activity ActivityJson `form:"Activity"` //活动信息
|
|
|
}
|
|
|
type LotteryJson {
|
|
|
- LotteryId int64 `form:"lotteryId"` //奖券Id
|
|
|
- LotteryName string `form:"lotteryName"` //奖券名字
|
|
|
- LotteryBeginDate string `form:"lotteryBeginDate"` //活动时间起
|
|
|
- LotteryendDate string `form:"lotteryendDate"` //活动时间止
|
|
|
- IsReceive bool `form:"isReceive"` //是否领取
|
|
|
- UseProductList string `form:"useProductList"` //使用商品列表
|
|
|
- Full int64 `form:"full"` //满多少
|
|
|
- Reduce int64 `form:"reduce"` //减多少
|
|
|
- Instructions string `form:"instructions"` //使用说明
|
|
|
- Remark string `form:"remark"` //备注
|
|
|
- UserLotteryId int64 `form:"userLotteryId"` //用户奖券标识
|
|
|
- UseDate string `form:"useDate"` //使用时间
|
|
|
- StockNumber int64 `form:"stockNumber"` //库存数
|
|
|
- ReceiveNumber int64 `form:"receiveNumber"` //领取数
|
|
|
- ValidityDates int64 `form:"validityDates"` //有效天数
|
|
|
- ValidityTimeType int64 `form:"validityTimeType"` //有效时间类型0、有起止时间1、当天起几天可用2、次日起几天可用
|
|
|
+ LotteryId int64 `form:"lotteryId"` //奖券Id
|
|
|
+ LotteryName string `form:"lotteryName"` //奖券名字
|
|
|
+ LotteryBeginDate string `form:"lotteryBeginDate"` //活动时间起
|
|
|
+ LotteryendDate string `form:"lotteryendDate"` //活动时间止
|
|
|
+ IsReceive bool `form:"isReceive"` //是否领取
|
|
|
+ UseProductList []ProductJson `form:"useProductList"` //使用商品列表
|
|
|
+ Full int64 `form:"full"` //满多少
|
|
|
+ Reduce int64 `form:"reduce"` //减多少
|
|
|
+ Instructions string `form:"instructions"` //使用说明
|
|
|
+ Remark string `form:"remark"` //备注
|
|
|
+ UserLotteryId int64 `form:"userLotteryId"` //用户奖券标识
|
|
|
+ UseDate string `form:"useDate"` //使用时间
|
|
|
+ StockNumber int64 `form:"stockNumber"` //库存数
|
|
|
+ ReceiveNumber int64 `form:"receiveNumber"` //领取数
|
|
|
+ ValidityDates int64 `form:"validityDates"` //有效天数
|
|
|
+ ValidityTimeType int64 `form:"validityTimeType"` //有效时间类型0、有起止时间1、当天起几天可用2、次日起几天可用
|
|
|
}
|
|
|
type ActivityJson {
|
|
|
ActivityName string `form:"activityName"` //活动名字
|
|
@@ -63,6 +64,19 @@ type ActivityJson {
|
|
|
ActivityendDate string `form:"activityendDate"` //活动时间止
|
|
|
ActivityDesc string `form:"activityDesc"` //活动描述
|
|
|
}
|
|
|
+type ProductJson {
|
|
|
+ ProductName string `xorm:"productName" form:"productName" json:"productName"` //产品名称
|
|
|
+ PcPage string `xorm:"pcPage" form:"pcPage" json:"pcPage"` //pc端产品推广页地址
|
|
|
+ WxPage string `xorm:"wxPage" form:"wxPage" json:"wxPage"` //wx端产品推广页地址
|
|
|
+ AppPage string `xorm:"appPage" form:"appPage" json:"appPage"` //app端产品推广页地址
|
|
|
+ Describe string `xorm:"describe" form:"describe" json:"describe"` //描述
|
|
|
+}
|
|
|
+
|
|
|
+type LotteryResp {
|
|
|
+ Code int64 `form:"code"` //响应代码
|
|
|
+ Message string `form:"message"` //响应消息
|
|
|
+ Data LotteryJson `form:"Activity"` //活动信息
|
|
|
+}
|
|
|
service activity-api {
|
|
|
//查询活动下的奖券
|
|
|
@handler activityLotteryCheckHandler // TODO: set handler name and delete this comment
|
|
@@ -79,4 +93,7 @@ service activity-api {
|
|
|
//奖券使用
|
|
|
@handler activityUseCheckHandler // TODO: set handler name and delete this comment
|
|
|
post /activityUse (LotteryOperation) returns(Response)
|
|
|
+ //奖券详情
|
|
|
+ @handler lotteryInfoCheckHandler // TODO: set handler name and delete this comment
|
|
|
+ get /lotteryInfo (Request) returns(LotteryResp)
|
|
|
}
|