refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,32 +1,32 @@
|
||||
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 Mgt {
|
||||
|
||||
|
||||
// 创建订单
|
||||
rpc OrderCreate(CreateOrderRequest) returns (StatusReply) {};
|
||||
rpc OrderCreate(CreateOrderRequest) returns (blocks.OrderStatusReply) {};
|
||||
|
||||
// 修改订单
|
||||
rpc OrderModify(OrderSummaryItem) returns (StatusReply) {};
|
||||
rpc OrderModify(blocks.OrderSummaryItem) returns (blocks.OrderStatusReply) {};
|
||||
|
||||
// 获取一个订单的详情数据
|
||||
rpc OrderGet(IdentRequest) returns (OrderGetReply) {};
|
||||
rpc OrderGet(blocks.OrderIdentRequest) returns (OrderGetReply) {};
|
||||
|
||||
// 根据不同的类型获取店铺的订单列表
|
||||
rpc OrderListByStore(OrderListByStoreRequest) returns (OrderListByStoreReply) {};
|
||||
|
||||
// 取消订单
|
||||
rpc OrderCancel(IdentRequest) returns (StatusReply) {};
|
||||
rpc OrderCancel(blocks.OrderIdentRequest) returns (blocks.OrderStatusReply) {};
|
||||
|
||||
// 退货
|
||||
rpc OrderReturnable(IdentRequest) returns (StatusReply) {};
|
||||
rpc OrderReturnable(blocks.OrderIdentRequest) returns (blocks.OrderStatusReply) {};
|
||||
|
||||
// 订单审批
|
||||
rpc OrderApprove(IdentRequest) returns (StatusReply) {};
|
||||
rpc OrderApprove(blocks.OrderIdentRequest) returns (blocks.OrderStatusReply) {};
|
||||
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ message SpecList {
|
||||
|
||||
|
||||
message OrderGetReply {
|
||||
OrderSummaryItem summary = 1; // 订单概要详情
|
||||
blocks.OrderSummaryItem summary = 1; // 订单概要详情
|
||||
}
|
||||
|
||||
|
||||
@@ -64,5 +64,5 @@ message OrderListByStoreRequest {
|
||||
|
||||
message OrderListByStoreReply {
|
||||
int32 count = 1;
|
||||
repeated OrderSummaryItem data = 2; // 订单列表
|
||||
repeated blocks.OrderSummaryItem data = 2; // 订单列表
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user