refactor: add unified all service gateway
This commit is contained in:
@@ -9,16 +9,16 @@ service Ads{
|
||||
rpc ByPos(ByPosRequest) returns (AdsListReply) {}
|
||||
|
||||
// 广告列表
|
||||
rpc Fetch(blocks.MallFetchRequest) returns (AdsListReply){};
|
||||
rpc Fetch(ec_mall_blocks.MallFetchRequest) returns (AdsListReply){};
|
||||
|
||||
// 新建广告
|
||||
rpc Create (AdsItem) returns (blocks.IdentityStatusReply){};
|
||||
rpc Create (AdsItem) returns (ec_mall_blocks.IdentityStatusReply){};
|
||||
|
||||
// 修改广告
|
||||
rpc Modify (AdsItem) returns (blocks.IdentityStatusReply){};
|
||||
rpc Modify (AdsItem) returns (ec_mall_blocks.IdentityStatusReply){};
|
||||
|
||||
// 删除广告
|
||||
rpc Delete (blocks.IdentRequest) returns (blocks.IdentityStatusReply){};
|
||||
rpc Delete (ec_mall_blocks.IdentRequest) returns (ec_mall_blocks.IdentityStatusReply){};
|
||||
}
|
||||
message ByPosRequest{
|
||||
repeated string pos_key = 1 [json_name="pos_key"];
|
||||
@@ -40,4 +40,4 @@ message AdsItem{
|
||||
string to_url = 6 [json_name="to_url"];// 跳转链接
|
||||
string created_at = 7 [json_name="created_at"];// 创建时间
|
||||
int64 status = 8;// 状态:默认为0,-1禁止,1为正常
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user