refactor: add unified all service gateway
This commit is contained in:
@@ -7,19 +7,19 @@ import "module/ec/market/proto/const.proto";
|
||||
service Supply{
|
||||
|
||||
// 新增供应商
|
||||
rpc Create(MarketSupplyItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Create(MarketSupplyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取一个供应商
|
||||
rpc Get(blocks.IdentRequest) returns (MarketSupplyItem) {}
|
||||
rpc Get(ec_market_blocks.IdentRequest) returns (MarketSupplyItem) {}
|
||||
|
||||
// 供应商列表
|
||||
rpc Fetch(blocks.MarketFetchRequest) returns (SupplyReply) {}
|
||||
rpc Fetch(ec_market_blocks.MarketFetchRequest) returns (SupplyReply) {}
|
||||
|
||||
// 更新供应商数据
|
||||
rpc Modify(MarketSupplyItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Modify(MarketSupplyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 删除一个供应商
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Delete(ec_market_blocks.IdentRequest) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -49,4 +49,4 @@ message MarketSupplyItem {
|
||||
message SupplyReply {
|
||||
int64 count = 1;// 总数
|
||||
repeated MarketSupplyItem data = 2;// 数据
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user