0.5.8-panel-upgrade-community-crud-fix
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
2025-06-30 21:25:26 +03:00
parent 9de86c0fae
commit 952b294345
70 changed files with 11345 additions and 2655 deletions

View File

@@ -31,6 +31,9 @@ type AdminUserInfo {
input AdminUserUpdateInput {
id: Int!
email: String
name: String
slug: String
roles: [String!]
community: Int
}
@@ -43,7 +46,7 @@ type Role {
# Тип для пагинированного ответа пользователей
type AdminUserListResponse {
users: [AdminUserInfo!]!
authors: [AdminUserInfo!]!
total: Int!
page: Int!
perPage: Int!

View File

@@ -21,6 +21,8 @@ input TopicInput {
title: String
body: String
pic: String
community: Int
parent_ids: [Int]
}
input DraftInput {

View File

@@ -36,6 +36,7 @@ type Mutation {
create_topic(topic_input: TopicInput!): CommonResult!
update_topic(topic_input: TopicInput!): CommonResult!
delete_topic(slug: String!): CommonResult!
delete_topic_by_id(id: Int!): CommonResult!
# reaction
create_reaction(reaction: ReactionInput!): CommonResult!

View File

@@ -66,7 +66,7 @@ type Query {
# topic
get_topic(slug: String!): Topic
get_topics_all: [Topic]
get_topics_all: [Topic]!
get_topics_by_author(slug: String, user: String, author_id: Int): [Topic]
get_topics_by_community(community_id: Int!, limit: Int, offset: Int): [Topic]

View File

@@ -189,6 +189,8 @@ type Topic {
title: String
body: String
pic: String
community: Int
parent_ids: [Int]
stat: TopicStat
oid: String
is_main: Boolean