28 lines
422 B
Protocol Buffer
28 lines
422 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
package order;
|
|
option go_package = "lone-services/rpc/order";
|
|
|
|
|
|
message ItemsRequest {
|
|
int32 page = 1;
|
|
int32 size = 2;
|
|
}
|
|
|
|
message Response {
|
|
int32 code = 1;
|
|
string msg = 2;
|
|
string data = 3;
|
|
}
|
|
|
|
|
|
service order {
|
|
rpc Items(ItemsRequest) returns(Response){
|
|
option (google.api.http) = {
|
|
get: "/admin/v3/order/items"
|
|
body: "*"
|
|
};
|
|
};
|
|
} |