35 lines
553 B
Protocol Buffer
35 lines
553 B
Protocol Buffer
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: "*"
|
|
};
|
|
};
|
|
}
|