53 lines
1.6 KiB
Protocol Buffer
53 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
package market;
|
|
option go_package = "bsm/full/module/ec/market/pb;market";
|
|
import "module/ec/market/proto/const.proto";
|
|
|
|
// 营销服务 - 供应商
|
|
service Supply{
|
|
|
|
// 新增供应商
|
|
rpc Create(MarketSupplyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
|
|
|
// 获取一个供应商
|
|
rpc Get(ec_market_blocks.IdentRequest) returns (MarketSupplyItem) {}
|
|
|
|
// 供应商列表
|
|
rpc Fetch(ec_market_blocks.MarketFetchRequest) returns (SupplyReply) {}
|
|
|
|
// 更新供应商数据
|
|
rpc Modify(MarketSupplyItem) returns (ec_market_blocks.IdentityStatusReply) {}
|
|
|
|
// 删除一个供应商
|
|
rpc Delete(ec_market_blocks.IdentRequest) returns (ec_market_blocks.IdentityStatusReply) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message MarketSupplyItem {
|
|
string name = 1 ; // 联系人名称 必填
|
|
string avatar = 2; // 头像
|
|
int32 commission_rate = 3 [json_name="commission_rate"]; // 佣金比例
|
|
string account = 4; // 帐号
|
|
string phone = 5; // 手机号
|
|
string password = 6; // 密码
|
|
string org_name = 7 [json_name="org_name"]; // 机构名称
|
|
string org_photo = 8 [json_name="org_photo"]; // 机构照片
|
|
string id_name = 9 [json_name="id_name"]; // 证件姓名
|
|
string id_before = 10 [json_name="id_before"]; // 证件照片
|
|
string id_after = 11 [json_name="id_after"]; // 证件照片
|
|
string remark = 12; // 备注
|
|
string identity = 13; // 唯一标识
|
|
int32 status = 14;// 状态
|
|
int32 id = 15;// id
|
|
|
|
}
|
|
|
|
|
|
message SupplyReply {
|
|
int64 count = 1;// 总数
|
|
repeated MarketSupplyItem data = 2;// 数据
|
|
}
|