权限,列表,详情

This commit is contained in:
2026-08-11 14:37:57 +08:00
parent 44c4aed22e
commit 8d14a63621
15 changed files with 1177 additions and 129 deletions
+76 -3
View File
@@ -77,6 +77,43 @@ message ServiceNameRequest {
string name = 1;
}
message AuthoritySortRequest {
int64 id = 1;
int32 type = 2;
}
message AuthorityNameRequest {
int64 service_id = 1;
int32 type = 2;
}
message AuthorityItemsRequest {
int64 service_id = 1;
}
message AuthorityEditRequest {
int64 id = 1;
string name = 2;
int64 parent_id = 3;
int32 type = 4;
int64 service_id = 5;
string path = 6;
string api = 7;
string view_path = 8;
string identification = 9;
string icon = 10;
int32 is_show = 11;
string description = 12;
string data_base_str = 13;
string data_all = 14;
string data_department = 15;
string data_oneself = 16;
string data_tree_all = 17;
string data_tree_department = 18;
string data_tree_oneself = 19;
}
service Admin {
rpc AdminEdit(AdminEditRequest) returns(Response){
option (google.api.http) = {
@@ -134,7 +171,7 @@ service Admin {
};
rpc ServiceInfo(InfoRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/service/info"
get: "/admin/v3/service/info"
body: "*"
};
};
@@ -146,7 +183,7 @@ service Admin {
};
rpc ServiceItems(ServiceItemsRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/service/items"
get: "/admin/v3/service/items"
body: "*"
};
};
@@ -158,7 +195,43 @@ service Admin {
};
rpc ServiceNames(ServiceNameRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/service/names"
get: "/admin/v3/service/names"
body: "*"
};
};
rpc AuthorityInfo(InfoRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/authority/info"
body: "*"
};
};
rpc AuthorityEdit(AuthorityEditRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/authority/edit"
body: "*"
};
};
rpc AuthorityItems(AuthorityItemsRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/authority/items"
body: "*"
};
};
rpc authorityStatus(StatusRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/authority/status"
body: "*"
};
};
rpc AuthorityNames(AuthorityNameRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/authority/names"
body: "*"
};
};
rpc AuthoritySort(AuthoritySortRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/authority/sort"
body: "*"
};
};