服务之间相互调用
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package express;
|
||||
option go_package="./express";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
|
||||
message Request {
|
||||
string ping = 1;
|
||||
}
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
string data = 3;
|
||||
}
|
||||
|
||||
message EmtpyRequest {
|
||||
}
|
||||
|
||||
service Express {
|
||||
rpc Ping(Request) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/express/ping"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Items(EmtpyRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/express/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user