refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
syntax = "proto3";
|
||||
package mall;
|
||||
option go_package = ".;mall";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/ec/mall/pb;mall";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
// 运费设置相关
|
||||
service Freight{
|
||||
// 运费模板列表
|
||||
rpc Fetch(FetchRequest) returns(FreightReply) {};
|
||||
rpc Fetch(blocks.MallFetchRequest) returns(FreightReply) {};
|
||||
|
||||
// 运费模板修改
|
||||
rpc Modify(FreightItem) returns(StatusReply) {};
|
||||
rpc Modify(FreightItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 运费模板删除
|
||||
rpc Delete(IdentRequest) returns(StatusReply) {};
|
||||
rpc Delete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 运费模板创建
|
||||
rpc Create(FreightItem) returns(StatusReply) {};
|
||||
rpc Create(FreightItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 运费模板详情
|
||||
rpc Detail(IdentRequest) returns(FreightItem) {};
|
||||
rpc Detail(blocks.IdentRequest) returns(FreightItem) {};
|
||||
|
||||
// 限制区域列表
|
||||
rpc DenyRegionFetch (FetchRequest) returns(DenyRegionReply) {};
|
||||
rpc DenyRegionFetch (blocks.MallFetchRequest) returns(DenyRegionReply) {};
|
||||
|
||||
// 新建限制区域
|
||||
rpc DenyRegionCreate (DenyRegionItem) returns(StatusReply) {};
|
||||
rpc DenyRegionCreate (DenyRegionItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 移除限制区域
|
||||
rpc DenyRegionDelete (IdentRequest) returns(StatusReply) {};
|
||||
rpc DenyRegionDelete (blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 编辑限制区域
|
||||
rpc DenyRegionModify (DenyRegionItem) returns(StatusReply) {};
|
||||
rpc DenyRegionModify (DenyRegionItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user