refactor: reorganize modules and add Linux build tooling
This commit is contained in:
46
module/ec/mall/proto/blocks.proto
Normal file
46
module/ec/mall/proto/blocks.proto
Normal file
@@ -0,0 +1,46 @@
|
||||
syntax = "proto3";
|
||||
package mall;
|
||||
option go_package = ".;mall";
|
||||
|
||||
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 store_identity = 4 [json_name="store_identity"]; // 店铺唯一标识
|
||||
string keyword = 5; // 关键词
|
||||
repeated int64 category_id = 6;// 分类ID
|
||||
string sort = 7;// 排序字段
|
||||
int64 min_price = 8 [json_name="min_price"];// 最小价格
|
||||
int64 max_price = 9 [json_name="max_price"];// 最大价格
|
||||
}
|
||||
|
||||
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 VersionRequest {
|
||||
int64 version = 1; // 时序版本号
|
||||
}
|
||||
|
||||
|
||||
message SearchRequest {
|
||||
string keyword = 1; //关键词
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user