|
@@ -11,6 +11,7 @@ message Request {
|
|
|
int64 model=6;//1查看名下所有奖券 0查看可以使用的奖券(没有过期的) 2过期的奖券
|
|
|
string userName=7;//用户名称
|
|
|
int64 userLottertId=8;//用户奖券标识
|
|
|
+ int64 lotteryId=9;//奖券Id
|
|
|
}
|
|
|
message LotteryOperation{
|
|
|
repeated int64 lotteryIdArr=1;//奖券标识集合
|
|
@@ -23,7 +24,7 @@ message UpdateStateReq{
|
|
|
string userId=1;//用户标识
|
|
|
string appId=2;//身份标识
|
|
|
string orderCode=3;//订单编号
|
|
|
- int64 model=5;//1使用、3待使用、0未使用
|
|
|
+ int64 model=5;//1使用、3待使用、0未使用
|
|
|
string userName=6;//用户名称
|
|
|
int64 userLottertId=7;//用户奖券标识
|
|
|
}
|
|
@@ -48,7 +49,7 @@ message LotteryJson{
|
|
|
string lotteryBeginDate=4;//奖券时间起
|
|
|
string lotteryendDate=5;//奖券时间止
|
|
|
bool isReceive=6;//是否领取
|
|
|
- string useProductList=7;//使用商品列表
|
|
|
+ repeated ProductJson useProductList=7;//使用商品列表
|
|
|
int64 full=8;//满多少
|
|
|
int64 reduce=9;//减多少
|
|
|
string Instructions=10;//使用说明
|
|
@@ -59,7 +60,6 @@ message LotteryJson{
|
|
|
int64 stockNumber=15;//库存数
|
|
|
int64 receiveNumber=16;//领取数
|
|
|
int64 validityDates=17;//有效天数
|
|
|
-
|
|
|
}
|
|
|
message ActivityJson{
|
|
|
string activityName=1;//活动名字
|
|
@@ -67,8 +67,27 @@ message ActivityJson{
|
|
|
string activityendDate=3;//活动时间止
|
|
|
string activityDesc=4;//活动描述
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+message ProductJson{
|
|
|
+ string productName=1;//产品名称
|
|
|
+ string pcPage=2;//pc端产品推广页地址
|
|
|
+ string wxPage=3;//wx端产品推广页地址
|
|
|
+ string appPage=4;//app端产品推广页地址
|
|
|
+ string describe=5;//描述
|
|
|
+}
|
|
|
+message LotteryInfo{
|
|
|
+ string lotteryName=1;//奖券名字
|
|
|
+ int64 validityTimeType=2;//有效时间类型0、有起止时间1、当天起几天可用2、次日起几天可用
|
|
|
+ string lotteryBeginDate=3;//奖券时间起
|
|
|
+ string lotteryendDate=4;//奖券时间止
|
|
|
+ repeated ProductJson useProductList=5;//使用商品列表
|
|
|
+ int64 full=6;//满多少
|
|
|
+ int64 reduce=7;//减多少
|
|
|
+ string Instructions=8;//使用说明
|
|
|
+ string remark=9;//备注
|
|
|
+ int64 stockNumber=10;//库存数
|
|
|
+ int64 receiveNumber=11;//领取数
|
|
|
+ int64 validityDates=12;//有效天数
|
|
|
+}
|
|
|
service Activity {
|
|
|
//查询活动下的奖券
|
|
|
rpc activityLottery(Request) returns(activityLotteryResp);
|
|
@@ -80,4 +99,6 @@ service Activity {
|
|
|
rpc activityUse(LotteryOperation) returns(Response);
|
|
|
//用户下的奖券
|
|
|
rpc userLottery(Request) returns(activityLotteryResp);
|
|
|
+ //奖券信息
|
|
|
+ rpc userLottery(Request) returns(activityLotteryResp);
|
|
|
}
|