This commit is contained in:
@@ -220,6 +220,13 @@ type CustomRoleResult {
|
||||
role: Role
|
||||
}
|
||||
|
||||
# Результат операций с топиками
|
||||
type AdminTopicResult {
|
||||
success: Boolean!
|
||||
error: String
|
||||
topic: Topic
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
getEnvVariables: [EnvSection!]!
|
||||
# Запросы для управления пользователями
|
||||
@@ -289,4 +296,9 @@ extend type Mutation {
|
||||
# Создание и удаление произвольных ролей
|
||||
adminCreateCustomRole(role: CustomRoleInput!): CustomRoleResult!
|
||||
adminDeleteCustomRole(role_id: String!, community_id: Int!): OperationResult!
|
||||
|
||||
# Admin mutations для управления топиками
|
||||
adminUpdateTopic(topic: AdminTopicInput!): AdminTopicResult!
|
||||
adminCreateTopic(topic: AdminTopicInput!): AdminTopicResult!
|
||||
adminMergeTopics(merge_input: TopicMergeInput!): AdminTopicResult!
|
||||
}
|
||||
|
@@ -25,6 +25,16 @@ input TopicInput {
|
||||
parent_ids: [Int]
|
||||
}
|
||||
|
||||
input AdminTopicInput {
|
||||
id: Int!
|
||||
slug: String
|
||||
title: String
|
||||
body: String
|
||||
pic: String
|
||||
community: Int
|
||||
parent_ids: [Int]
|
||||
}
|
||||
|
||||
input TopicMergeInput {
|
||||
target_topic_id: Int!
|
||||
source_topic_ids: [Int!]!
|
||||
|
Reference in New Issue
Block a user