Files
full/module/ec/order/proto/coupon.proto

30 lines
679 B
Protocol Buffer

syntax = "proto3";
package order;
option go_package = "bsm/full/module/ec/order/pb;order";
// Order(订单)微服务-优惠卷
service Coupon {
// 按状态获取优惠卷
rpc ByStatus(Status) returns (CouponListReply) {};
}
message Status {
int32 status = 1; //优惠卷状态
}
message CouponListReply {
repeated CouponItem data = 1; // 购物车中的商品数据列表
}
message CouponItem{
int64 id = 1; // ID
string identity = 2; // 唯一码
string title = 3; //标题
string intro = 4; //描述
string amount = 5; //金额
string started =6; // 开始时间
string expired =7; // 结束时间
string status =8; // 状态
}