This commit is contained in:
2026-08-12 10:20:45 +08:00
parent dae0b973c7
commit aa20f9e9f0
22 changed files with 2002 additions and 82 deletions
+69 -4
View File
@@ -45,9 +45,9 @@ message AdminItemsRequest {
int32 page = 1;
int32 size = 2;
string phone = 3;
string name = 5;
string email = 6;
int32 status = 7;
string name = 4;
string email = 5;
int32 status = 6;
}
message AdminLoginRequest {
@@ -112,7 +112,30 @@ message AuthorityEditRequest {
string data_tree_department = 18;
string data_tree_oneself = 19;
}
message RoleRuleRequest {
int64 id = 1;
string rule = 2;
}
message RoleNameRequest {
string name = 1;
int64 service_id = 2;
}
message RoleEditRequest {
int64 id = 1;
string name = 2;
int64 service_id = 3;
repeated int64 rules = 4;
}
message RoleItemsRequest {
int32 page = 1;
int32 size = 2;
int64 service_id = 3;
string name = 4;
int32 status = 5;
}
service Admin {
rpc AdminEdit(AdminEditRequest) returns(Response){
@@ -169,6 +192,12 @@ service Admin {
body: "*"
};
};
rpc LoginRoutes(AdminEmptyRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/routes"
body: "*"
};
};
rpc ServiceInfo(InfoRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/service/info"
@@ -217,7 +246,7 @@ service Admin {
body: "*"
};
};
rpc authorityStatus(StatusRequest) returns(Response){
rpc AuthorityStatus(StatusRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/authority/status"
body: "*"
@@ -235,4 +264,40 @@ service Admin {
body: "*"
};
};
rpc RoleNames(RoleNameRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/role/names"
body: "*"
};
};
rpc RoleInfo(InfoRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/role/info"
body: "*"
};
};
rpc RoleEdit(RoleEditRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/role/edit"
body: "*"
};
};
rpc RoleItems(RoleItemsRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/role/items"
body: "*"
};
};
rpc RoleStatus(StatusRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/role/status"
body: "*"
};
};
rpc RoleRule(RoleRuleRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/role/rule"
body: "*"
};
};
}