测试
This commit is contained in:
parent
748e0daffc
commit
1879f71f76
|
@ -15,6 +15,12 @@ git submodule add git@gitlab.fusenpack.com:backend/proto.git
|
||||||
```
|
```
|
||||||
然后执行
|
然后执行
|
||||||
```bash
|
```bash
|
||||||
|
go install \
|
||||||
|
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
|
||||||
|
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
|
||||||
|
google.golang.org/protobuf/cmd/protoc-gen-go \
|
||||||
|
google.golang.org/grpc/cmd/protoc-gen-go-grpc
|
||||||
|
|
||||||
go run proto/goutils/proto_build/main.go
|
go run proto/goutils/proto_build/main.go
|
||||||
或者
|
或者
|
||||||
在proto/goutils/proto_build/main_test.go执行测试 TestMain
|
在proto/goutils/proto_build/main_test.go执行测试 TestMain
|
||||||
|
|
|
@ -128,7 +128,7 @@ service product {
|
||||||
// 产品详情
|
// 产品详情
|
||||||
rpc GetProductDetail(GetProductDetailReq) returns (GetProductDetailRsp) {
|
rpc GetProductDetail(GetProductDetailReq) returns (GetProductDetailRsp) {
|
||||||
option (google.api.http) = {
|
option (google.api.http) = {
|
||||||
get: "/api/product/get_product_detail"
|
get: "/api/product/detail"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -223,9 +223,9 @@ message ContactUsRequest {
|
||||||
|
|
||||||
message GetProductDetailReq{
|
message GetProductDetailReq{
|
||||||
int64 product_id = 1;
|
int64 product_id = 1;
|
||||||
string template_tag = 2;
|
// string template_tag = 2;
|
||||||
int64 selected_color_index = 3;
|
// int64 selected_color_index = 3;
|
||||||
optional string logo = 4;
|
// string logo = 4;
|
||||||
}
|
}
|
||||||
message GetProductDetailRsp{
|
message GetProductDetailRsp{
|
||||||
string msg = 1;
|
string msg = 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user