refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
syntax = "proto3";
|
||||
package market;
|
||||
option go_package = ".;market";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/ec/market/pb;market";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
// 营销服务 - 代理商
|
||||
service Agency{
|
||||
// 登录
|
||||
rpc Login(LoginRequest) returns (LoginReply) {}
|
||||
rpc Login(LoginRequest) returns (blocks.MarketLoginReply) {}
|
||||
|
||||
// 新增代理商
|
||||
rpc Create(MarketAgenctyItem) returns (StatusReply) {}
|
||||
rpc Create(MarketAgenctyItem) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取一个代理商
|
||||
rpc Get(IdentRequest) returns (MarketAgenctyItem) {}
|
||||
rpc Get(blocks.IdentRequest) returns (MarketAgenctyItem) {}
|
||||
|
||||
// 代理商列表
|
||||
rpc Fetch(FetchRequest) returns (AgencyReply) {}
|
||||
rpc Fetch(blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
|
||||
// 更新代理商数据
|
||||
rpc Modify(MarketAgenctyItem) returns (StatusReply) {}
|
||||
|
||||
rpc Modify(MarketAgenctyItem) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
// 删除一个代理商
|
||||
rpc Delete(IdentRequest) returns (StatusReply) {}
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
// 更新密码
|
||||
rpc SetPassword(SetPasswordRequest) returns (StatusReply) {}
|
||||
rpc SetPassword(SetPasswordRequest) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
//待审核
|
||||
rpc Pending(FetchRequest) returns (AgencyReply) {}
|
||||
rpc Pending(blocks.MarketFetchRequest) returns (AgencyReply) {}
|
||||
|
||||
// 审核
|
||||
rpc Approve(ApproveRequest) returns (StatusReply) {};
|
||||
rpc Approve(ApproveRequest) returns (blocks.IdentityStatusReply) {};
|
||||
|
||||
}
|
||||
|
||||
@@ -45,9 +45,9 @@ message MarketAgenctyItem {
|
||||
string identity = 1; // 唯一标识
|
||||
string created_at = 2 [json_name="created_at"]; // 创建时间
|
||||
|
||||
string name = 3 ; // 联系人名称 必填
|
||||
string name = 3 ; // 联系人名称 必填
|
||||
string avatar = 4; // 头像
|
||||
string account = 5; // 帐号
|
||||
string account = 5; // 帐号
|
||||
string phone = 6; // 手机号
|
||||
string password = 7; // 密码
|
||||
string org_name = 8 [json_name="org_name"]; // 机构名称
|
||||
|
||||
Reference in New Issue
Block a user