refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
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 Notice{
|
||||
// 公告列表
|
||||
rpc Fetch(FetchRequest) returns (NoticeListReply){};
|
||||
rpc Fetch(blocks.MallFetchRequest) returns (NoticeListReply){};
|
||||
|
||||
// 新建公告
|
||||
rpc Create (NoticeItem) returns (StatusReply){};
|
||||
rpc Create (NoticeItem) returns (blocks.IdentityStatusReply){};
|
||||
|
||||
// 修改公告
|
||||
rpc Modify (NoticeItem) returns (StatusReply){};
|
||||
|
||||
rpc Modify (NoticeItem) returns (blocks.IdentityStatusReply){};
|
||||
|
||||
// 删除公告
|
||||
rpc Delete (IdentRequest) returns (StatusReply){};
|
||||
rpc Delete (blocks.IdentRequest) returns (blocks.IdentityStatusReply){};
|
||||
}
|
||||
|
||||
// 公告列表
|
||||
|
||||
Reference in New Issue
Block a user