refactor: reorganize modules and add Linux build tooling
This commit is contained in:
30
module/ec/order/proto/coupon.proto
Normal file
30
module/ec/order/proto/coupon.proto
Normal file
@@ -0,0 +1,30 @@
|
||||
syntax = "proto3";
|
||||
package order;
|
||||
option go_package = "./order";
|
||||
import "blocks.proto";
|
||||
|
||||
// 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; // 状态
|
||||
}
|
||||
Reference in New Issue
Block a user