refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
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";
|
||||
|
||||
// Store(店铺)微服务-分类
|
||||
service Category{
|
||||
@@ -9,13 +9,13 @@ service Category{
|
||||
rpc Fetch(CategoryFetchRequest) returns(CategoryReply) {};
|
||||
|
||||
// 添加分类
|
||||
rpc Create(CategoryItem) returns(StatusReply) {};
|
||||
rpc Create(CategoryItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 删除分类
|
||||
rpc Delete(IdentRequest) returns(StatusReply) {};
|
||||
rpc Delete(blocks.IdentRequest) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
// 修改分类
|
||||
rpc Modify(CategoryItem) returns(StatusReply) {};
|
||||
rpc Modify(CategoryItem) returns(blocks.IdentityStatusReply) {};
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user