31 lines
625 B
Protocol Buffer
31 lines
625 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package productservice.productv1;
|
|
import "product/productv1/common.proto";
|
|
option go_package = "./product/productv1;productv1";
|
|
|
|
// 平台(上游)
|
|
service Product {
|
|
// 搜索平台列表
|
|
rpc SearchList (ReqProductSearchList) returns (RespProductSearchList) {}
|
|
}
|
|
|
|
// 搜索平台列表请求
|
|
message ReqProductSearchList {
|
|
// 关键字
|
|
string keyword = 1;
|
|
// 分页
|
|
ReqPage page = 2;
|
|
}
|
|
|
|
// 平台详情响应
|
|
message RespProductInfo {
|
|
int32 id = 1;
|
|
string name = 2;
|
|
int32 createTime = 3;
|
|
}
|
|
|
|
//搜索平台列表响应
|
|
message RespProductSearchList {
|
|
repeated RespProductInfo list = 1;
|
|
} |