fix manage roles

This commit is contained in:
2025-05-21 10:35:27 +03:00
parent d3a760b6ba
commit f6156ccfa3
8 changed files with 334 additions and 283 deletions

View File

@@ -32,6 +32,7 @@ type AdminUserInfo {
input AdminUserUpdateInput {
id: Int!
roles: [String!]
community: Int
}
type Role {
@@ -49,6 +50,12 @@ type AdminUserListResponse {
totalPages: Int!
}
# Общий ответ на операцию с данными об успехе и ошибке
type OperationResult {
success: Boolean!
error: String
}
extend type Query {
getEnvVariables: [EnvSection!]!
# Запросы для управления пользователями
@@ -61,5 +68,5 @@ extend type Mutation {
updateEnvVariables(variables: [EnvVariableInput!]!): Boolean!
# Мутации для управления пользователями
adminUpdateUser(user: AdminUserUpdateInput!): Boolean!
adminUpdateUser(user: AdminUserUpdateInput!): OperationResult!
}