MarketingSystemDataExportTool/grpc/mix/couponv1/derivative_card_value.proto

66 lines
1.6 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package mixservice.couponv1;
option go_package = "./mix/couponv1;couponv1";
service DerivativeCardValue {
//列表
rpc GetSearchList(DerivativeCardValueGetSearchListReq) returns (DerivativeCardValueGetSearchListResp) {}
//批量作废
rpc BatchUpdateStatus(DerivativeCardValueUpdateStatusReq) returns (DerivativeCardValueUpdateStatusResp) {}
}
message DerivativeCardValueGetSearchListReq {
//活动id
int32 stock_id = 1;
//状态0=待使用,1=已使用,-1=作废,3=已激活,-2=已过期
optional int32 status = 2;
//页码
int32 page = 3;
//每页数据条数
int32 limit = 4;
}
message DerivativeCardValueGetSearchListResp {
repeated DerivativeCardValueInfo list = 1;
int32 dataCount = 2;
}
message DerivativeCardValueInfo {
//数据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;
//状态转义
string status_text = 11;
}
message DerivativeCardValueUpdateStatusReq {
//优惠券id集合
repeated int32 ids = 1;
//状态0=待使用,1=已使用,-1=作废,3=已激活,-2=已过期
optional int32 status = 2;
//批次id
int32 stock_id = 3;
}
message DerivativeCardValueUpdateStatusResp {
//成功作废的优惠码数量
int32 effect_rows = 1;
}