update
This commit is contained in:
parent
572b6e198a
commit
624b492db1
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3"; //版本声明,使用v3版本
|
||||
|
||||
package fsservice;
|
||||
option go_package = "gitlab.fusenpack.com/backend/service;service";
|
||||
option go_package = "gitee.com/fusenpack/fusen-service;service";
|
||||
|
||||
// 导入google/api/annotations.proto 注释依赖
|
||||
import "google/api/annotations.proto";
|
||||
|
@ -9,6 +9,15 @@ import "service/basic.proto";
|
|||
import "google/protobuf/struct.proto";
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
//定义服务
|
||||
service notify {
|
||||
rpc Hello(basic.Request) returns (basic.Response) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/notify/hello"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
//定义服务
|
||||
service info {
|
||||
|
@ -124,6 +133,15 @@ service info {
|
|||
|
||||
}
|
||||
|
||||
//定义产品服务
|
||||
service product {
|
||||
// 产品详情
|
||||
rpc GetProductDetail(GetProductDetailReq) returns (GetProductDetailRsp) {
|
||||
option (google.api.http) = {
|
||||
get: "/api/product/get_product_detail"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message UserInfoRequest {
|
||||
repeated string module = 1; // 模块
|
||||
|
@ -213,4 +231,14 @@ message ContactUsRequest {
|
|||
string message = 4; // 消息内容
|
||||
}
|
||||
|
||||
message GetProductDetailReq{
|
||||
int64 product_id = 1;
|
||||
string template_tag = 2;
|
||||
int64 selected_color_index = 3;
|
||||
optional string logo = 4;
|
||||
}
|
||||
message GetProductDetailRsp{
|
||||
string msg = 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user