...
|
...
|
@@ -333,6 +333,32 @@ |
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/mini/article_backup/{id}": {
|
|
|
"get": {
|
|
|
"summary": "小程序获取文章的编辑记录",
|
|
|
"operationId": "MiniGetArticleBackup",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/MiniGetArticleBackupResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"article"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/mini/article_comment": {
|
|
|
"post": {
|
|
|
"summary": "小程序填写文章的评论",
|
...
|
...
|
@@ -766,7 +792,7 @@ |
|
|
"v1/mini/homepage/user_beliked": {
|
|
|
"post": {
|
|
|
"summary": "个人主页-获赞的列表",
|
|
|
"operationId": "miniHomepageUserBeliked",
|
|
|
"operationId": "miniHomepageUserBeLiked",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
...
|
...
|
@@ -1915,6 +1941,170 @@ |
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/article_category": {
|
|
|
"post": {
|
|
|
"summary": "标签分类保存",
|
|
|
"operationId": "articleCategorySave",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ArticleCategorySaveResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ArticleCategorySaveRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/article_category/options": {
|
|
|
"get": {
|
|
|
"summary": "标签分类下拉列表",
|
|
|
"operationId": "articleCategoryOptions",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/CategoryOptionsResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/article_category/search": {
|
|
|
"post": {
|
|
|
"summary": "标签分类搜索",
|
|
|
"operationId": "articleCategorySearch",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ArticleCategorySearchResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ArticleCategorySearchRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/article_category/{id}": {
|
|
|
"get": {
|
|
|
"summary": "标签分类详情",
|
|
|
"operationId": "articleCategoryGet",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ArticleCategoryGetResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
},
|
|
|
"delete": {
|
|
|
"summary": "标签分类删除",
|
|
|
"operationId": "articleCategoryDelete",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ArticleCategoryDeleteResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ArticleCategoryDeleteRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
},
|
|
|
"put": {
|
|
|
"summary": "标签分类更新",
|
|
|
"operationId": "articleCategoryUpdate",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ArticleCategoryUpdateResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ArticleCategoryUpdateRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"tags"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/article_comment/edit": {
|
|
|
"post": {
|
|
|
"summary": "管理后台变更评论",
|
...
|
...
|
@@ -2323,6 +2513,34 @@ |
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/company/visible_switch": {
|
|
|
"post": {
|
|
|
"summary": "公司可见开关",
|
|
|
"operationId": "systemCompanyVisibleSwitch",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/CompanyVisibleSwitchResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/CompanyVisibleSwitchRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"company"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/system/department/add": {
|
|
|
"post": {
|
|
|
"summary": "部门-新增",
|
...
|
...
|
@@ -2875,6 +3093,162 @@ |
|
|
"company"
|
|
|
]
|
|
|
},
|
|
|
"ArticleCategoryDeleteRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleCategoryDeleteRequest",
|
|
|
"required": [
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"ArticleCategoryDeleteResponse": {
|
|
|
"type": "object",
|
|
|
"title": "ArticleCategoryDeleteResponse"
|
|
|
},
|
|
|
"ArticleCategoryGetRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleCategoryGetRequest",
|
|
|
"required": [
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"ArticleCategoryGetResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"category": {
|
|
|
"$ref": "#/definitions/ArticleCategoryItem"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleCategoryGetResponse",
|
|
|
"required": [
|
|
|
"category"
|
|
|
]
|
|
|
},
|
|
|
"ArticleCategoryItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 唯一标识"
|
|
|
},
|
|
|
"companyId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"sortBy": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 排序"
|
|
|
},
|
|
|
"enable": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 启用状态 1:启用 2:禁用"
|
|
|
},
|
|
|
"other": {
|
|
|
"type": "string",
|
|
|
"description": " 其他备注说明"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleCategoryItem",
|
|
|
"required": [
|
|
|
"companyId",
|
|
|
"name",
|
|
|
"sortBy",
|
|
|
"enable",
|
|
|
"other"
|
|
|
]
|
|
|
},
|
|
|
"ArticleCategorySaveRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"category": {
|
|
|
"$ref": "#/definitions/ArticleCategoryItem"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleCategorySaveRequest",
|
|
|
"required": [
|
|
|
"category"
|
|
|
]
|
|
|
},
|
|
|
"ArticleCategorySaveResponse": {
|
|
|
"type": "object",
|
|
|
"title": "ArticleCategorySaveResponse"
|
|
|
},
|
|
|
"ArticleCategorySearchRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleCategorySearchRequest",
|
|
|
"required": [
|
|
|
"page",
|
|
|
"size"
|
|
|
]
|
|
|
},
|
|
|
"ArticleCategorySearchResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/ArticleCategoryItem"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleCategorySearchResponse",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"ArticleCategoryUpdateRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"category": {
|
|
|
"$ref": "#/definitions/ArticleCategoryItem"
|
|
|
}
|
|
|
},
|
|
|
"title": "ArticleCategoryUpdateRequest",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"category"
|
|
|
]
|
|
|
},
|
|
|
"ArticleCategoryUpdateResponse": {
|
|
|
"type": "object",
|
|
|
"title": "ArticleCategoryUpdateResponse"
|
|
|
},
|
|
|
"ArticleCommentAndReply": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
...
|
...
|
@@ -3224,6 +3598,70 @@ |
|
|
"code"
|
|
|
]
|
|
|
},
|
|
|
"CategoryOptionValue": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"label": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"value": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 分类ID"
|
|
|
}
|
|
|
},
|
|
|
"title": "CategoryOptionValue",
|
|
|
"required": [
|
|
|
"label",
|
|
|
"value"
|
|
|
]
|
|
|
},
|
|
|
"CategoryOptions": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"value": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 分类ID"
|
|
|
},
|
|
|
"label": {
|
|
|
"type": "string",
|
|
|
"description": " 分组名称"
|
|
|
}
|
|
|
},
|
|
|
"title": "CategoryOptions",
|
|
|
"required": [
|
|
|
"value",
|
|
|
"label"
|
|
|
]
|
|
|
},
|
|
|
"CategoryOptionsRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 公司ID"
|
|
|
}
|
|
|
},
|
|
|
"title": "CategoryOptionsRequest"
|
|
|
},
|
|
|
"CategoryOptionsResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"options": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/CategoryOptions"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"title": "CategoryOptionsResponse",
|
|
|
"required": [
|
|
|
"options"
|
|
|
]
|
|
|
},
|
|
|
"CommentAtWho": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
...
|
...
|
@@ -3405,6 +3843,24 @@ |
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"CompanyVisibleSwitchRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"visible": {
|
|
|
"type": "boolean",
|
|
|
"format": "boolean",
|
|
|
"description": " 可见性 true:可被搜索 false:不可被搜索"
|
|
|
}
|
|
|
},
|
|
|
"title": "CompanyVisibleSwitchRequest",
|
|
|
"required": [
|
|
|
"visible"
|
|
|
]
|
|
|
},
|
|
|
"CompanyVisibleSwitchResponse": {
|
|
|
"type": "object",
|
|
|
"title": "CompanyVisibleSwitchResponse"
|
|
|
},
|
|
|
"Department": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
...
|
...
|
@@ -3808,12 +4264,31 @@ |
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"videos": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Video"
|
|
|
}
|
|
|
},
|
|
|
"changeField": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"createdAt": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"location": {
|
|
|
"$ref": "#/definitions/Location"
|
|
|
},
|
|
|
"action": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"show": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniArticleBackupItem",
|
...
|
...
|
@@ -3822,8 +4297,12 @@ |
|
|
"title",
|
|
|
"content",
|
|
|
"images",
|
|
|
"videos",
|
|
|
"changeField",
|
|
|
"createdAt",
|
|
|
"location"
|
|
|
"location",
|
|
|
"action",
|
|
|
"show"
|
|
|
]
|
|
|
},
|
|
|
"MiniArticleBackupSearchRequest": {
|
...
|
...
|
@@ -4991,6 +5470,84 @@ |
|
|
"type": "object",
|
|
|
"title": "MiniEditUserInfoResponse"
|
|
|
},
|
|
|
"MiniGetArticleBackupRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 服务端自动获取"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniGetArticleBackupRequest",
|
|
|
"required": [
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"MiniGetArticleBackupResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"title": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"content": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"images": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"videos": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Video"
|
|
|
}
|
|
|
},
|
|
|
"changeField": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"createdAt": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"location": {
|
|
|
"$ref": "#/definitions/Location"
|
|
|
},
|
|
|
"action": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"show": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniGetArticleBackupResponse",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"title",
|
|
|
"content",
|
|
|
"images",
|
|
|
"videos",
|
|
|
"changeField",
|
|
|
"createdAt",
|
|
|
"location",
|
|
|
"action",
|
|
|
"show"
|
|
|
]
|
|
|
},
|
|
|
"MiniGetArticleCommentRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
...
|
...
|
@@ -5114,6 +5671,9 @@ |
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniHomePageUserFollowerSearchRequest",
|
...
|
...
|
@@ -5210,10 +5770,14 @@ |
|
|
"format": "int32",
|
|
|
"description": " 数量"
|
|
|
},
|
|
|
"orderByHotScore": {
|
|
|
"orderByKey": {
|
|
|
"type": "string",
|
|
|
"default": "desc",
|
|
|
"description": " 热度排序 升序 asc 降序 desc"
|
|
|
"description": " 按规则排序 (热度:HotScore All:时间排序 Time:时间排序)"
|
|
|
},
|
|
|
"orderByValue": {
|
|
|
"type": "string",
|
|
|
"description": " 排序值 升序 asc 降序 desc"
|
|
|
},
|
|
|
"keywords": {
|
|
|
"type": "string",
|
...
|
...
|
@@ -5224,7 +5788,7 @@ |
|
|
"format": "int64",
|
|
|
"description": " 开始时间"
|
|
|
},
|
|
|
"beginTime": {
|
|
|
"endTime": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 结束时间"
|
...
|
...
|
@@ -5234,7 +5798,8 @@ |
|
|
"required": [
|
|
|
"authorId",
|
|
|
"size",
|
|
|
"orderByHotScore"
|
|
|
"orderByKey",
|
|
|
"orderByValue"
|
|
|
]
|
|
|
},
|
|
|
"MiniHomepageUserNewsResposne": {
|
...
|
...
|
@@ -5250,12 +5815,17 @@ |
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 最后文章ID"
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "MiniHomepageUserNewsResposne",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"lastArticleId"
|
|
|
"lastArticleId",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"MiniListArticleCommentRequest": {
|
...
|
...
|
@@ -7247,6 +7817,10 @@ |
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": "每页行数"
|
|
|
},
|
|
|
"orderMode": {
|
|
|
"type": "string",
|
|
|
"description": "排序方式"
|
|
|
}
|
|
|
},
|
|
|
"title": "SystemArticleSearchRequest",
|
...
|
...
|
@@ -7353,7 +7927,6 @@ |
|
|
"title": "SystemArticleUpdateRequest",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"template",
|
|
|
"section",
|
|
|
"title",
|
|
|
"images",
|
...
|
...
|
@@ -8584,9 +9157,14 @@ |
|
|
"TagOptions": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"value": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 分类ID"
|
|
|
},
|
|
|
"label": {
|
|
|
"type": "string",
|
|
|
"description": " 分组名称"
|
|
|
"description": " 分类名称"
|
|
|
},
|
|
|
"options": {
|
|
|
"type": "array",
|
...
|
...
|
@@ -8597,6 +9175,7 @@ |
|
|
},
|
|
|
"title": "TagOptions",
|
|
|
"required": [
|
|
|
"value",
|
|
|
"label",
|
|
|
"options"
|
|
|
]
|
...
|
...
|
|