refactor: add unified all service gateway
This commit is contained in:
@@ -6,31 +6,31 @@ import "module/ec/market/proto/const.proto";
|
||||
// 营销服务 - 代理商
|
||||
service Agency{
|
||||
// 登录
|
||||
rpc Login(LoginRequest) returns (blocks.MarketLoginReply) {}
|
||||
rpc Login(LoginRequest) returns (ec_market_blocks.MarketLoginReply) {}
|
||||
|
||||
// 新增代理商
|
||||
rpc Create(MarketAgenctyItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Create(MarketAgenctyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取一个代理商
|
||||
rpc Get(blocks.IdentRequest) returns (MarketAgenctyItem) {}
|
||||
rpc Get(ec_market_blocks.IdentRequest) returns (MarketAgenctyItem) {}
|
||||
|
||||
// 代理商列表
|
||||
rpc Fetch(blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
rpc Fetch(ec_market_blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
|
||||
// 更新代理商数据
|
||||
rpc Modify(MarketAgenctyItem) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Modify(MarketAgenctyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 删除一个代理商
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.IdentityStatusReply) {}
|
||||
rpc Delete(ec_market_blocks.IdentRequest) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
// 更新密码
|
||||
rpc SetPassword(SetPasswordRequest) returns (blocks.IdentityStatusReply) {}
|
||||
rpc SetPassword(SetPasswordRequest) returns (ec_market_blocks.IdentityStatusReply) {}
|
||||
|
||||
//待审核
|
||||
rpc Pending(blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
rpc Pending(ec_market_blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
|
||||
// 审核
|
||||
rpc Approve(ApproveRequest) returns (blocks.IdentityStatusReply) {};
|
||||
rpc Approve(ApproveRequest) returns (ec_market_blocks.IdentityStatusReply) {};
|
||||
|
||||
}
|
||||
|
||||
@@ -80,4 +80,4 @@ message AgencyReply {
|
||||
message ApproveRequest {
|
||||
int32 approve = 1; // 1:通过 2:拒绝
|
||||
string identity = 2; // 唯一标识
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package blocks;
|
||||
package ec_market_blocks;
|
||||
|
||||
option go_package = "bsm/full/module/ec/market/pb;market";
|
||||
|
||||
|
||||
@@ -6,19 +6,19 @@ import "module/ec/market/proto/const.proto";
|
||||
// 数据服务
|
||||
service Data{
|
||||
// 概况
|
||||
rpc Overview(blocks.Empty) returns (OverviewReply) {}
|
||||
rpc Overview(ec_market_blocks.Empty) returns (OverviewReply) {}
|
||||
|
||||
// 会员列表
|
||||
rpc MemberFetch(blocks.MarketFetchRequest) returns (DataReply) {}
|
||||
rpc MemberFetch(ec_market_blocks.MarketFetchRequest) returns (DataReply) {}
|
||||
|
||||
// 会员详情
|
||||
rpc MemberDetails(blocks.IdentRequest) returns (KeyVal) {}
|
||||
rpc MemberDetails(ec_market_blocks.IdentRequest) returns (KeyVal) {}
|
||||
|
||||
// 订单列表
|
||||
rpc OrderFetch(blocks.MarketFetchRequest) returns (DataReply) {}
|
||||
rpc OrderFetch(ec_market_blocks.MarketFetchRequest) returns (DataReply) {}
|
||||
|
||||
// 订单详情
|
||||
rpc OrderDetails(blocks.IdentRequest) returns (KeyVal) {}
|
||||
rpc OrderDetails(ec_market_blocks.IdentRequest) returns (KeyVal) {}
|
||||
}
|
||||
|
||||
message OverviewReply {
|
||||
@@ -46,4 +46,4 @@ message DataReply {
|
||||
message KeyVal {
|
||||
string key=1;
|
||||
string val=2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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