✨ improve the functions related to commenting on images
This commit is contained in:
@@ -31,6 +31,33 @@
|
||||
"responses": {}
|
||||
}
|
||||
},
|
||||
"/api/auth/permission/assign": {
|
||||
"post": {
|
||||
"description": "给指定角色分配权限",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"权限管理"
|
||||
],
|
||||
"summary": "给指定角色分配权限",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "权限列表",
|
||||
"name": "permissions",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.AddPermissionToRoleRequestDto"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {}
|
||||
}
|
||||
},
|
||||
"/api/auth/role/add_role_to_user": {
|
||||
"post": {
|
||||
"description": "给指定用户添加角色",
|
||||
@@ -126,6 +153,22 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/auth/user/logout": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"用户模块"
|
||||
],
|
||||
"summary": "退出登录",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/auth/user/query_by_phone": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -394,6 +437,60 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/comment/reply": {
|
||||
"post": {
|
||||
"description": "提交回复",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"评论"
|
||||
],
|
||||
"summary": "提交回复",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "回复评论请求",
|
||||
"name": "reply_comment_request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.ReplyCommentRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {}
|
||||
}
|
||||
},
|
||||
"/api/comment/submit": {
|
||||
"post": {
|
||||
"description": "提交评论",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"评论"
|
||||
],
|
||||
"summary": "提交评论",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "评论请求",
|
||||
"name": "comment_request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.CommentRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {}
|
||||
}
|
||||
},
|
||||
"/api/oauth/callback_notify": {
|
||||
"post": {
|
||||
"description": "微信回调",
|
||||
@@ -751,16 +848,6 @@
|
||||
"summary": "创建websocket服务",
|
||||
"responses": {}
|
||||
}
|
||||
},
|
||||
"/api/ws/socket": {
|
||||
"get": {
|
||||
"description": "创建websocket服务",
|
||||
"tags": [
|
||||
"websocket"
|
||||
],
|
||||
"summary": "创建websocket服务(gorilla)",
|
||||
"responses": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
@@ -789,6 +876,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.AddPermissionToRoleRequestDto": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"method": {
|
||||
"type": "string"
|
||||
},
|
||||
"permission": {
|
||||
"type": "string"
|
||||
},
|
||||
"role_key": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.AddRoleToUserRequestDto": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -800,6 +901,26 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.CommentRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"images": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"topic_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PhoneLoginRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -814,6 +935,32 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.ReplyCommentRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"images": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"reply_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"reply_user": {
|
||||
"type": "string"
|
||||
},
|
||||
"topic_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.ResetPasswordRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -902,7 +1049,6 @@
|
||||
"type": "integer"
|
||||
},
|
||||
"update_by": {
|
||||
"description": "更新人",
|
||||
"type": "string"
|
||||
},
|
||||
"update_time": {
|
||||
|
Reference in New Issue
Block a user