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版本 syntax = "proto3"; //使v3版本
package fsservice; package fsservice;
option go_package = "gitlab.fusenpack.com/backend/service;service"; option go_package = "gitee.com/fusenpack/fusen-service;service";
// google/api/annotations.proto // google/api/annotations.proto
import "google/api/annotations.proto"; import "google/api/annotations.proto";
import "service/basic.proto"; import "service/basic.proto";
import "google/protobuf/struct.proto"; import "google/protobuf/struct.proto";
import "google/protobuf/any.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) { rpc UserInfo(UserInfoRequest) returns (basic.Response) {
option (google.api.http) = { 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 { message UserInfoRequest {
repeated string module = 1; // repeated string module = 1; //
@ -134,7 +152,7 @@ message QueryProfileRequest {
} }
message QueryProfileResponse { message QueryProfileResponse {
google.protobuf.Struct data = 1; google.protobuf.Struct data = 1;
} }
message DefaultProfileRequest { message DefaultProfileRequest {
@ -213,4 +231,14 @@ message ContactUsRequest {
string message = 4; // 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;
}