change layout
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user