refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
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 Supply{
|
||||
|
||||
// 新增供应商
|
||||
rpc Create(MarketSupplyItem) returns (StatusReply) {}
|
||||
rpc Create(MarketSupplyItem) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
// 获取一个供应商
|
||||
rpc Get(IdentRequest) returns (MarketSupplyItem) {}
|
||||
rpc Get(blocks.IdentRequest) returns (MarketSupplyItem) {}
|
||||
|
||||
// 供应商列表
|
||||
rpc Fetch(FetchRequest) returns (SupplyReply) {}
|
||||
rpc Fetch(blocks.MarketFetchRequest) returns (SupplyReply) {}
|
||||
|
||||
// 更新供应商数据
|
||||
rpc Modify(MarketSupplyItem) returns (StatusReply) {}
|
||||
|
||||
rpc Modify(MarketSupplyItem) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
// 删除一个供应商
|
||||
rpc Delete(IdentRequest) returns (StatusReply) {}
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.IdentityStatusReply) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -27,10 +27,10 @@ service Supply{
|
||||
|
||||
|
||||
message MarketSupplyItem {
|
||||
string name = 1 ; // 联系人名称 必填
|
||||
string name = 1 ; // 联系人名称 必填
|
||||
string avatar = 2; // 头像
|
||||
int32 commission_rate = 3 [json_name="commission_rate"]; // 佣金比例
|
||||
string account = 4; // 帐号
|
||||
string account = 4; // 帐号
|
||||
string phone = 5; // 手机号
|
||||
string password = 6; // 密码
|
||||
string org_name = 7 [json_name="org_name"]; // 机构名称
|
||||
|
||||
Reference in New Issue
Block a user