This commit is contained in:
laodaming@fusen.cn
2023-12-04 14:56:42 +08:00
parent 572b6e198a
commit 624b492db1

View File

@@ -1,17 +1,26 @@
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";
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 {
service info {
// 用户信息
rpc UserInfo(UserInfoRequest) returns (basic.Response) {
option (google.api.http) = {
@@ -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; // 模块
@@ -134,7 +152,7 @@ message QueryProfileRequest {
}
message QueryProfileResponse {
google.protobuf.Struct data = 1;
google.protobuf.Struct data = 1;
}
message DefaultProfileRequest {
@@ -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;
}