order apis
This commit is contained in:
@@ -5,10 +5,6 @@ option go_package="./express";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
|
||||
message Request {
|
||||
string ping = 1;
|
||||
}
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
@@ -18,16 +14,69 @@ message Response {
|
||||
message EmtpyRequest {
|
||||
}
|
||||
|
||||
message CreateRequest {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
int32 transit_id = 3;
|
||||
string app_code = 4;
|
||||
string app_secret_key = 5;
|
||||
string app_url = 6;
|
||||
string card_number = 7;
|
||||
string province = 8;
|
||||
string city = 9;
|
||||
string county = 10;
|
||||
string address = 11;
|
||||
string company_name = 12;
|
||||
string contact = 13;
|
||||
string mobile = 14;
|
||||
string pdf_code = 15;
|
||||
string other = 16;
|
||||
}
|
||||
|
||||
message IdRequest {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message StatusRequest {
|
||||
int64 id = 1;
|
||||
int32 status = 2;
|
||||
string reason = 3;
|
||||
}
|
||||
|
||||
service Express {
|
||||
rpc Ping(Request) returns(Response){
|
||||
rpc Items(EmtpyRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/express/ping"
|
||||
get: "/admin/v3/express/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Items(EmtpyRequest) returns(Response){
|
||||
rpc Create(CreateRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/express/items"
|
||||
post: "/admin/v3/express/create"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Edit(CreateRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/express/edit"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Info(IdRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/express/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Names(EmtpyRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/express/names"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Status(StatusRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/express/status"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user