service apis edit, info, items, status, names
This commit is contained in:
@@ -58,6 +58,25 @@ message AdminLoginRequest {
|
||||
message AdminEmptyRequest {
|
||||
}
|
||||
|
||||
message InfoRequest {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message ServiceEditRequest {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
string description = 3;
|
||||
}
|
||||
|
||||
message ServiceItemsRequest {
|
||||
string name = 1;
|
||||
int32 status = 2;
|
||||
}
|
||||
|
||||
message ServiceNameRequest {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
service Admin {
|
||||
rpc AdminEdit(AdminEditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
@@ -113,4 +132,34 @@ service Admin {
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceInfo(InfoRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/service/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceEdit(ServiceEditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/service/edit"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceItems(ServiceItemsRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/service/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceStatus(StatusRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/service/status"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ServiceNames(ServiceNameRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/service/names"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user