feat: import services and standardize Go 1.26.5
This commit is contained in:
52
apps/ec/market/proto/supply.proto
Normal file
52
apps/ec/market/proto/supply.proto
Normal file
@@ -0,0 +1,52 @@
|
||||
syntax = "proto3";
|
||||
package market;
|
||||
option go_package = ".;market";
|
||||
import "blocks.proto";
|
||||
|
||||
// 营销服务 - 供应商
|
||||
service Supply{
|
||||
|
||||
// 新增供应商
|
||||
rpc Create(MarketSupplyItem) returns (StatusReply) {}
|
||||
|
||||
// 获取一个供应商
|
||||
rpc Get(IdentRequest) returns (MarketSupplyItem) {}
|
||||
|
||||
// 供应商列表
|
||||
rpc Fetch(FetchRequest) returns (SupplyReply) {}
|
||||
|
||||
// 更新供应商数据
|
||||
rpc Modify(MarketSupplyItem) returns (StatusReply) {}
|
||||
|
||||
// 删除一个供应商
|
||||
rpc Delete(IdentRequest) returns (StatusReply) {}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
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;// 数据
|
||||
}
|
||||
Reference in New Issue
Block a user