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 Ads{
|
||||
@@ -9,16 +9,16 @@ service Ads{
|
||||
rpc ByPos(ByPosRequest) returns (AdsListReply) {}
|
||||
|
||||
// 广告列表
|
||||
rpc Fetch(FetchRequest) returns (AdsListReply){};
|
||||
rpc Fetch(blocks.MallFetchRequest) returns (AdsListReply){};
|
||||
|
||||
// 新建广告
|
||||
rpc Create (AdsItem) returns (StatusReply){};
|
||||
rpc Create (AdsItem) returns (blocks.IdentityStatusReply){};
|
||||
|
||||
// 修改广告
|
||||
rpc Modify (AdsItem) returns (StatusReply){};
|
||||
rpc Modify (AdsItem) returns (blocks.IdentityStatusReply){};
|
||||
|
||||
// 删除广告
|
||||
rpc Delete (IdentRequest) returns (StatusReply){};
|
||||
rpc Delete (blocks.IdentRequest) returns (blocks.IdentityStatusReply){};
|
||||
}
|
||||
message ByPosRequest{
|
||||
repeated string pos_key = 1 [json_name="pos_key"];
|
||||
|
||||
Reference in New Issue
Block a user