refactor: reorganize modules and add Linux build tooling
This commit is contained in:
53
module/ec/market/proto/blocks.proto
Normal file
53
module/ec/market/proto/blocks.proto
Normal file
@@ -0,0 +1,53 @@
|
||||
syntax = "proto3";
|
||||
package market;
|
||||
option go_package = ".;market";
|
||||
|
||||
message Empty{
|
||||
}
|
||||
|
||||
message FetchRequest {
|
||||
int64 page_no=1 [json_name = "page_no"]; // 页数
|
||||
int64 page_size=2 [json_name = "page_size"]; // 每页记录数
|
||||
map<string,string> params=3; // 条件参数,key=val,eg key:categoryId=?,vlaue=11
|
||||
string identity = 4 ; // 唯一标识
|
||||
string keyword = 5; //关键词
|
||||
int32 status = 6; // 状态:默认为0,-1禁止,1为正常
|
||||
int32 approve = 7;// 审核状态:0:待审核 2:审核通过 -2:审核未通过
|
||||
}
|
||||
|
||||
message IdentRequest{
|
||||
int64 id = 1; // 唯一ID
|
||||
string identity = 2; // 唯一码
|
||||
}
|
||||
|
||||
message StoreSerialRequest{
|
||||
string store_identity = 1 [json_name="store_identity"]; // 店铺Identity
|
||||
repeated string serial_id = 2 [json_name="serial_id"]; // 序列Identity
|
||||
}
|
||||
|
||||
message StatusReply{
|
||||
int32 code = 1; // 状态码
|
||||
string identity=2; // 标识码
|
||||
string message=3; //状态说明
|
||||
int64 timeseq=4; // 响应时间序列
|
||||
}
|
||||
message LoginReply {
|
||||
string token = 1; // token 授权码
|
||||
string identity = 2; // 唯一标识
|
||||
string market_identity = 3 [json_name="market_identity"]; // 店铺唯一标识
|
||||
string name = 4; // 姓名
|
||||
string account = 5; // 账号
|
||||
string role = 6; // 角色
|
||||
int32 status = 7; // 状态
|
||||
string created_at = 8 [json_name="created_at"]; // 创建时间
|
||||
string market_name = 9 [json_name="market_name"]; // 店铺名称
|
||||
}
|
||||
|
||||
message VersionRequest {
|
||||
int64 version = 1; // 时序版本号
|
||||
}
|
||||
|
||||
|
||||
message SearchRequest {
|
||||
string keyword = 1; //关键词
|
||||
}
|
||||
Reference in New Issue
Block a user