feat: edit comment

This commit is contained in:
NGPixel
2020-05-31 18:15:15 -04:00
parent e74605501f
commit 7a946ec0f5
6 changed files with 273 additions and 35 deletions

View File

@@ -47,7 +47,7 @@ type CommentMutation {
update(
id: Int!
content: String!
): DefaultResponse @auth(requires: ["write:comments", "manage:comments", "manage:system"])
): CommentUpdateResponse @auth(requires: ["write:comments", "manage:comments", "manage:system"])
delete(
id: Int!
@@ -77,7 +77,7 @@ input CommentProviderInput {
type CommentPost {
id: Int!
content: String!
content: String! @auth(requires: ["write:comments", "manage:comments", "manage:system"])
render: String!
authorId: Int!
authorName: String!
@@ -91,3 +91,8 @@ type CommentCreateResponse {
responseResult: ResponseStatus
id: Int
}
type CommentUpdateResponse {
responseResult: ResponseStatus
render: String
}