MarketingSystemDataExportTool/grpc/trade/tradev1/coupon_order.proto

163 lines
3.5 KiB
Protocol Buffer

syntax = "proto3";
package tradeservice.tradev1;
option go_package = "./trade/tradev1;tradev1";
// 订单服务
service CouponOrder {
// 获取订单列表
rpc GetCouponOrderList (GetCouponOrderListReq) returns (GetCouponOrderListResp) {};
// 订单导出
rpc OrderCouponExport (GetCouponOrderListReq) returns (CouponOrderExportResp) {};
// 获取订单日志
rpc GetNotifyLog (GetNotifyLogReq) returns (GetNotifyLogResp) {};
// 保存订单日志
rpc SaveNotifyLog (SaveNotifyLogReq) returns (SaveNotifyLogResp) {};
}
// 获取订单日志请求
message GetNotifyLogReq {
// 订单号
string order_number = 1;
// 卡券编码
string coupon_code = 2;
}
// 获取订单日志响应
message GetNotifyLogResp {
// 订单日志记录
repeated NotifyLog logs = 1;
}
message NotifyLog {
// 时间
string datetime = 1;
// 卡券编码
string coupon_code = 2;
// 平台标识
string platform_tag = 3;
// 流水号
string serial_number = 4;
// 订单号
string order_number = 5;
// 卡券状态
int32 coupon_status = 6;
// 请求内容
map<string, string> request = 7;
// 响应内容
map<string, string> response = 8;
}
// 订单导出响应
message CouponOrderExportResp {
// 游标
int32 cursor = 1;
// 订单列表
repeated CouponOrderInfo list = 2;
}
// 获取订单列表请求
message GetCouponOrderListReq {
// 订单编号集合
string order_number = 1;
// 订单状态
repeated int32 statuses = 2;
// 分销商id
int32 reseller_id = 3;
// 卡券编码
string coupon_code = 4;
// 时间
repeated int32 create_time = 5;
// 上游平台ID
int32 platform_id = 6;
// 我们的产品ID
int32 ours_product_id = 7;
// 分销商订单号
string reseller_order_number = 8;
// 页码
int32 page = 9;
// 每页数量
int32 limit = 10;
// 游标
int32 cursor = 11;
//核销时间
repeated int32 use_time = 12;
}
// 获取订单列表响应
message GetCouponOrderListResp {
// 总计核销数量
int32 total_used = 1;
// 总数量
int32 total = 2;
// 订单列表
repeated CouponOrderInfo list = 3;
}
// 订单信息
message CouponOrderInfo {
// 订单编号order_number
string order_number = 1;
// 流水号
string serial_number = 2;
// 卡券编码
string coupon_code = 3;
// 订单状态【0 未核销 1 已核销 2 冲正 3 已过期 4 无效】
int32 status = 4;
// 分销商id
int32 reseller_id = 5;
// 分销商名称
string reseller_name = 6;
// 上游价格
double platform_price = 7;
// 下游价格
double reseller_price = 8;
// 核销账号
string use_account = 9;
// 核销时间
int32 use_time = 10;
// 核销门店
string use_store_no = 11;
// 商品名称
string ours_product_title = 12;
// 商品ID
int32 ours_product_id = 13;
// 订单创建时间
int32 create_time = 14;
// 开始时间
int32 start_time = 15;
// 结束时间
int32 end_time = 16;
// 平台ID
int32 platform_id = 17;
// 平台名称
string platform_name = 18;
// 分销商订单号
string reseller_order_number = 19;
// 平台商品ID
int32 platform_product_id = 20;
}
// 保存订单日志请求
message SaveNotifyLogReq {
// 时间
string datetime = 1;
// 卡券编码
string coupon_code = 2;
// 平台标识
string platform_tag = 3;
// 流水号
string serial_number = 4;
// 订单号
string order_number = 5;
// 卡券状态
int32 coupon_status = 6;
// 请求内容
map<string, string> request = 7;
// 响应内容
map<string, string> response = 8;
}
// 保存订单日志响应
message SaveNotifyLogResp {
}