refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package order;
|
||||
option go_package = "./order";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/ec/order/pb;order";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
// Order(订单)微服务-购物车
|
||||
service Cart {
|
||||
@@ -9,13 +9,13 @@ service Cart {
|
||||
rpc Fetch(CartGetRequest) returns (CartGetReply) {};
|
||||
|
||||
// 将商品增加至购物车
|
||||
rpc Create(CartAddRequest) returns (StatusReply) {};
|
||||
rpc Create(CartAddRequest) returns (blocks.OrderStatusReply) {};
|
||||
|
||||
// 修改购物车中的商品数量
|
||||
rpc Modify(CartSetRequest) returns (StatusReply) {};
|
||||
rpc Modify(CartSetRequest) returns (blocks.OrderStatusReply) {};
|
||||
|
||||
// 删除购物车中的商品
|
||||
rpc Delete(CartDelRequest) returns (StatusReply) {};
|
||||
rpc Delete(CartDelRequest) returns (blocks.OrderStatusReply) {};
|
||||
}
|
||||
|
||||
message CartGetRequest {
|
||||
@@ -40,7 +40,7 @@ message CartItem{
|
||||
int32 number = 8; // 数量
|
||||
int64 unit_price = 9 [json_name="unit_price"]; // 实际单价
|
||||
int64 total_price = 10 [json_name="total_price"]; // 总价
|
||||
string identity = 11; // 购物车商品信息唯一标识
|
||||
string identity = 11; // 购物车商品信息唯一标识
|
||||
}
|
||||
|
||||
message CartAddRequest {
|
||||
|
||||
Reference in New Issue
Block a user