66 lines
1.6 KiB
Protocol Buffer
66 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
||
|
||
package mixservice.couponv1;
|
||
|
||
option go_package = "./mix/couponv1;couponv1";
|
||
|
||
service AlipayCouponValue {
|
||
//列表
|
||
rpc GetSearchList(AlipayCouponValueGetSearchListReq) returns (AlipayCouponValueGetSearchListResp) {}
|
||
//批量作废
|
||
rpc BatchUpdateStatus(AlipayCouponValueUpdateStatusReq) returns (AlipayCouponValueUpdateStatusResp) {}
|
||
}
|
||
|
||
message AlipayCouponValueGetSearchListReq {
|
||
//活动id
|
||
int32 stock_id = 1;
|
||
//状态:0=待使用,1=已使用,-1=作废,3=已激活,-2=已过期,-9=活动停用
|
||
optional int32 status = 2;
|
||
//页码
|
||
int32 page = 3;
|
||
//每页数据条数
|
||
int32 limit = 4;
|
||
}
|
||
|
||
message AlipayCouponValueGetSearchListResp {
|
||
repeated AlipayCouponValueInfo list = 1;
|
||
int32 dataCount = 2;
|
||
}
|
||
message AlipayCouponValueInfo {
|
||
//数据id
|
||
int32 id = 1;
|
||
//活动编号
|
||
int32 stock_id = 2;
|
||
//衍生卡密
|
||
string code = 3;
|
||
//状态:0=待使用,1=已使用,-1=作废,3=已激活,-2=已过期
|
||
int32 status = 4;
|
||
//使用时间
|
||
int32 use_time = 5;
|
||
//使用订单号
|
||
string order_number = 6;
|
||
//分销商id
|
||
int32 reseller_id = 7;
|
||
//商品id
|
||
int32 goods_id = 8;
|
||
//作废时间
|
||
int32 abolish_time = 9;
|
||
//创建时间
|
||
int32 create_time = 10;
|
||
//status转义
|
||
string status_text = 11;
|
||
}
|
||
|
||
message AlipayCouponValueUpdateStatusReq {
|
||
//优惠券id集合
|
||
repeated int32 ids = 1;
|
||
//状态:0=待使用,1=已使用,-1=作废,3=已激活,-2=已过期
|
||
optional int32 status = 2;
|
||
//批次id
|
||
int32 stock_id = 3;
|
||
}
|
||
|
||
message AlipayCouponValueUpdateStatusResp {
|
||
//成功作废的优惠码数量
|
||
int32 effect_rows = 1;
|
||
} |