服务之间相互调用

This commit is contained in:
2026-08-24 10:06:52 +08:00
parent c33fbdb422
commit 80f428c032
49 changed files with 1756 additions and 35 deletions
+34
View File
@@ -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: "*"
};
};
}