Skip to content

完整接口文档

想要加入开发?没问题!!!这里有完整的接口文档!

标签控制器

POST addNewTagApi

POST /tag/add

请求参数

名称位置类型必选说明
tagNamequerystringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": 0,
    "name": "",
    "createdAt": "",
    "updatedAt": "",
    "deletedAt": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseTag

GET listTagsApi

GET /tag

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "tagId": "",
      "tagName": "",
      "articleCount": 0
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListTagVO

测试控制器

GET hello

GET /test/hello

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {}
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseObject

用户控制器

POST login

POST /user/login

请求参数

名称位置类型必选说明
userEmailquerystringnone
passwordquerystringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "nickname": "",
    "email": "",
    "avatar": "",
    "createdAt": "",
    "oauthProvider": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseUserVO

POST registerApi

POST /user/register

Body 请求参数

json
{
  "nickname": "string",
  "email": "string",
  "password": "string"
}

请求参数

名称位置类型必选说明
bodybodyUserRegisterDTOnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "nickname": "",
    "email": "",
    "avatar": "",
    "createdAt": "",
    "oauthProvider": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseUserVO

GET getCurrentUser

GET /user/info

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "nickname": "",
    "email": "",
    "avatar": "",
    "createdAt": "",
    "oauthProvider": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseUserVO

PATCH updateNickname

PATCH /user/update/nickname

Body 请求参数

json
"string"

请求参数

名称位置类型必选说明
bodybodystringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "nickname": "",
    "email": "",
    "avatar": "",
    "createdAt": "",
    "oauthProvider": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseUserVO

后台管理控制器

POST login

POST /admin/login

请求参数

名称位置类型必选说明
userEmailquerystringnone
passwordquerystringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "nickname": "",
    "email": "",
    "avatar": "",
    "createdAt": "",
    "oauthProvider": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseUserVO

GET getCurrentUser

GET /admin/userInfo

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "nickname": "",
    "email": "",
    "avatar": "",
    "createdAt": "",
    "oauthProvider": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseUserVO

POST addArticleApi

POST /admin/article

Body 请求参数

json
{
  "title": "string",
  "content": "string",
  "cover": "string",
  "categoryId": "string",
  "tags": "string",
  "isPublished": true,
  "shortUrl": "string",
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

请求参数

名称位置类型必选说明
bodybodyArticleDTOnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "summary": "",
    "toc": "",
    "content": "",
    "author": "",
    "cover": "",
    "category": "",
    "tags": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "",
    "isPublished": false,
    "createdAt": "",
    "updatedAt": "",
    "deletedAt": "",
    "isTop": false,
    "isHot": false,
    "isOriginal": false
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseArticleVO

DELETE deleteArticleApi

DELETE /admin/article/

请求参数

名称位置类型必选说明
idpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": ""
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseString

PATCH updateArticleApi

PATCH /admin/article/

Body 请求参数

json
{
  "title": "string",
  "content": "string",
  "cover": "string",
  "categoryId": "string",
  "tags": "string",
  "isPublished": true,
  "shortUrl": "string",
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

请求参数

名称位置类型必选说明
idpathstringnone
bodybodyArticleDTOnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "summary": "",
    "toc": "",
    "content": "",
    "author": "",
    "cover": "",
    "category": "",
    "tags": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "",
    "isPublished": false,
    "createdAt": "",
    "updatedAt": "",
    "deletedAt": "",
    "isTop": false,
    "isHot": false,
    "isOriginal": false
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseArticleVO

GET getArticleById

GET /admin/article/

请求参数

名称位置类型必选说明
idpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "summary": "",
    "toc": "",
    "content": "",
    "author": "",
    "cover": "",
    "categoryId": "",
    "tags": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "",
    "isPublished": false,
    "createdAt": "",
    "updatedAt": "",
    "deletedAt": "",
    "isTop": false,
    "isHot": false,
    "isOriginal": false
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseArticleVO

GET listAllCategories

GET /admin/category

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "name": "",
      "shortUrl": ""
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListCategoryVO

POST addCategoryApi

POST /admin/category

Body 请求参数

json
{
  "name": "string",
  "shortUrl": "string",
  "type": true
}

请求参数

名称位置类型必选说明
bodybodyAddCategorynone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "name": "",
    "shortUrl": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseCategoryVO

PATCH updateArticleApi

PATCH /admin/article/toggle/

Body 请求参数

json
{
  "isPublished": true,
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

请求参数

名称位置类型必选说明
idpathstringnone
bodybodyPostStatusTogglenone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "summary": "",
    "toc": "",
    "content": "",
    "author": "",
    "cover": "",
    "categoryId": "",
    "tags": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "",
    "isPublished": false,
    "createdAt": "",
    "updatedAt": "",
    "deletedAt": "",
    "isTop": false,
    "isHot": false,
    "isOriginal": false
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseArticleVO

GET listAllArticlesByPageAdmin

GET /admin/article/all

请求参数

名称位置类型必选说明
pagequeryintegernone
pageSizequeryintegernone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "title": "",
      "summary": "",
      "toc": "",
      "content": "",
      "author": "",
      "cover": "",
      "category": "",
      "tags": "",
      "views": 0,
      "likes": 0,
      "comments": 0,
      "shortUrl": "",
      "isPublished": false,
      "createdAt": "",
      "updatedAt": "",
      "deletedAt": "",
      "isTop": false,
      "isHot": false,
      "isOriginal": false
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListArticleVO

PATCH toggleStatusUpdateApi

PATCH /admin/statusUpdate/toggle/

Body 请求参数

json
{
  "isPublished": true,
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

请求参数

名称位置类型必选说明
idpathstringnone
bodybodyPostStatusTogglenone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "summary": "",
    "content": "",
    "authorName": "",
    "img": "",
    "categoryId": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "",
    "isPublished": false,
    "createdAt": "",
    "updatedAt": "",
    "deletedAt": "",
    "isTop": false,
    "isHot": false,
    "isOriginal": false
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseStatusUpdateVO

GET listAllStatusUpdatesByPageAdmin

GET /admin/statusUpdate/all

请求参数

名称位置类型必选说明
pagequeryintegernone
pageSizequeryintegernone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "title": "",
      "summary": "",
      "content": "",
      "authorName": "",
      "img": "",
      "categoryId": "",
      "views": 0,
      "likes": 0,
      "comments": 0,
      "shortUrl": "",
      "isPublished": false,
      "createdAt": "",
      "updatedAt": "",
      "deletedAt": "",
      "isTop": false,
      "isHot": false,
      "isOriginal": false
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListStatusUpdateVO

POST addStatusUpdateApi

POST /admin/statusUpdate

Body 请求参数

json
{
  "title": "string",
  "summary": "string",
  "content": "string",
  "img": "string",
  "categoryId": "string",
  "shortUrl": "string",
  "isPublished": true,
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

请求参数

名称位置类型必选说明
bodybodyStatusUpdateDTOnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "summary": "",
    "content": "",
    "authorName": "",
    "img": "",
    "categoryId": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "",
    "isPublished": false,
    "createdAt": "",
    "updatedAt": "",
    "deletedAt": "",
    "isTop": false,
    "isHot": false,
    "isOriginal": false
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseStatusUpdateVO

DELETE deleteStatusUpdateApi

DELETE /admin/statusUpdate/

请求参数

名称位置类型必选说明
idpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": ""
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseString

PATCH updateStatusUpdateApi

PATCH /admin/statusUpdate/

Body 请求参数

json
{
  "title": "string",
  "summary": "string",
  "content": "string",
  "img": "string",
  "categoryId": "string",
  "shortUrl": "string",
  "isPublished": true,
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

请求参数

名称位置类型必选说明
idpathstringnone
bodybodyStatusUpdateDTOnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "summary": "",
    "content": "",
    "authorName": "",
    "img": "",
    "categoryId": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "",
    "isPublished": false,
    "createdAt": "",
    "updatedAt": "",
    "deletedAt": "",
    "isTop": false,
    "isHot": false,
    "isOriginal": false
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseStatusUpdateVO

GET getStatusUpdateById

GET /admin/statusUpdate/

请求参数

名称位置类型必选说明
idpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "summary": "",
    "content": "",
    "authorName": "",
    "img": "",
    "categoryId": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "",
    "isPublished": false,
    "createdAt": "",
    "updatedAt": "",
    "deletedAt": "",
    "isTop": false,
    "isHot": false,
    "isOriginal": false
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseStatusUpdateVO

POST addPageApi

POST /admin/page

Body 请求参数

json
{
  "title": "string",
  "description": "string",
  "refPath": "string",
  "content": "string",
  "enable": true,
  "canComment": true
}

请求参数

名称位置类型必选说明
bodybodyPageDTOnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "description": "",
    "refPath": "",
    "toc": "",
    "content": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "commentId": "",
    "enable": false,
    "canDelete": false,
    "createdAt": "",
    "updatedAt": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponsePageVO

PATCH updatePageApi

PATCH /admin/page/

Body 请求参数

json
{
  "title": "string",
  "description": "string",
  "refPath": "string",
  "content": "string",
  "enable": true,
  "canComment": true
}

请求参数

名称位置类型必选说明
idpathstringnone
bodybodyPageDTOnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "description": "",
    "refPath": "",
    "toc": "",
    "content": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "commentId": "",
    "enable": false,
    "canDelete": false,
    "createdAt": "",
    "updatedAt": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponsePageVO

DELETE deletePageApi

DELETE /admin/page/

请求参数

名称位置类型必选说明
idpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": ""
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseString

GET getPageById

GET /admin/page/

请求参数

名称位置类型必选说明
idpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "description": "",
    "refPath": "",
    "toc": "",
    "content": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "commentId": "",
    "enable": false,
    "canDelete": false,
    "createdAt": "",
    "updatedAt": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponsePageVO

GET listAllPagesByPageAdmin

GET /admin/page/all

请求参数

名称位置类型必选说明
pagequeryintegernone
pageSizequeryintegernone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "title": "",
      "description": "",
      "refPath": "",
      "toc": "",
      "content": "",
      "views": 0,
      "likes": 0,
      "comments": 0,
      "commentId": "",
      "enable": false,
      "canDelete": false,
      "createdAt": "",
      "updatedAt": ""
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListPageVO

PUT updateWebsiteInfo

PUT /admin/website-info

请求参数

名称位置类型必选说明
keyquerystringnone
valuequerystringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": ""
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseString

PATCH togglePageApi

PATCH /admin/page/toggle/

Body 请求参数

json
{
  "isPublished": true,
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

请求参数

名称位置类型必选说明
idpathstringnone
bodybodyPostStatusTogglenone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "description": "",
    "refPath": "",
    "toc": "",
    "content": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "commentId": "",
    "enable": false,
    "canDelete": false,
    "createdAt": "",
    "updatedAt": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponsePageVO

PUT updateWebsiteInfo

PUT /admin/config

请求参数

名称位置类型必选说明
keyquerystringnone
valuequerystringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": ""
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseString

归档控制器

GET getArchiveApi

GET /archive

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "{year=0, @required={year=false}, @class={year=int}, @comment={year=}}": {
      "articleCount": 0,
      "statusUpdateCount": 0,
      "articles": [
        {
          "title": "",
          "shortUrl": "",
          "category": "",
          "createdAt": ""
        }
      ],
      "statusUpdates": [
        {
          "title": "",
          "shortUrl": "",
          "category": "",
          "createdAt": ""
        }
      ]
    }
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseMapArchiveSummary

文章控制器

GET 获取所有文章短链接

GET /article/shortLinks

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    ""
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListString

GET getArticleListByPage

GET /article/all

请求参数

名称位置类型必选说明
pagequeryintegernone
pageSizequeryintegernone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "title": "",
      "shortUrl": "",
      "authorName": "",
      "summary": "",
      "avatar": "",
      "cover": "",
      "views": 0,
      "categoryName": "",
      "tags": "",
      "likes": 0,
      "comments": 0,
      "isTop": false
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListArticlePreview

GET getLastFiveArticles

GET /article/lastFive

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "title": "",
      "shortUrl": "",
      "authorName": "",
      "summary": "",
      "avatar": "",
      "cover": "",
      "views": 0,
      "categoryName": "",
      "tags": "",
      "likes": 0,
      "comments": 0,
      "isTop": false
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListArticlePreview

GET getRecommendArticles

GET /article/recommend/

请求参数

名称位置类型必选说明
shortUrlpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "title": "",
      "shortUrl": "",
      "authorName": "",
      "summary": "",
      "avatar": "",
      "cover": "",
      "views": 0,
      "categoryName": "",
      "tags": "",
      "likes": 0,
      "comments": 0,
      "isTop": false
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListArticlePreview

GET getArticleListByCategory

GET /article/category/

请求参数

名称位置类型必选说明
shortUrlpathstringnone
pagequeryintegernone
pageSizequeryintegernone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "title": "",
      "shortUrl": "",
      "authorName": "",
      "summary": "",
      "avatar": "",
      "cover": "",
      "views": 0,
      "categoryName": "",
      "tags": "",
      "likes": 0,
      "comments": 0,
      "isTop": false
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListArticlePreview

GET viewOneArticleApi

GET /article/

请求参数

名称位置类型必选说明
shortUrlpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "shortUrl": "",
    "title": "",
    "content": "",
    "summary": "",
    "toc": "",
    "authorName": "",
    "cover": "",
    "categoryName": "",
    "tags": "",
    "views": 0,
    "likes": 0,
    "comments": 0
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseArticleView

验证码控制器

GET getCaptcha

GET /captcha

返回示例

200 Response

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

评论控制器

GET listCommentByArticleId

GET /comment/article/

请求参数

名称位置类型必选说明
shortUrlpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "articleId": "",
      "content": "",
      "avatarUrl": "",
      "userName": "",
      "location": "",
      "website": "",
      "createdAt": "",
      "updatedAt": "",
      "parentId": "",
      "children": [
        {
          "id": "",
          "articleId": "",
          "content": "",
          "avatarUrl": "",
          "userName": "",
          "location": "",
          "website": "",
          "createdAt": "",
          "updatedAt": "",
          "parentId": "",
          "children": []
        }
      ]
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListCommentVO

GET getCommentListById

GET /comment/

请求参数

名称位置类型必选说明
idpathstringnone
pagequeryintegernone
pageSizequeryintegernone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "areaId": "",
      "content": "",
      "avatarUrl": "",
      "userName": "",
      "location": "",
      "website": "",
      "createdAt": "",
      "updatedAt": "",
      "parentId": "",
      "parentUserName": "",
      "children": [
        {
          "id": "",
          "areaId": "",
          "content": "",
          "avatarUrl": "",
          "userName": "",
          "location": "",
          "website": "",
          "createdAt": "",
          "updatedAt": "",
          "parentId": "",
          "parentUserName": "",
          "children": []
        }
      ]
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListCommentVO

POST addNewComment

POST /comment

Body 请求参数

json
{
  "areaId": "string",
  "content": "string",
  "userName": "string",
  "email": "string",
  "website": "string",
  "parentId": "string"
}

请求参数

名称位置类型必选说明
bodybodyCommentNotLoginFormnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "articleId": "",
    "content": "",
    "avatarUrl": "",
    "userName": "",
    "location": "",
    "website": "",
    "createdAt": "",
    "updatedAt": "",
    "parentId": "",
    "children": [
      {
        "id": "",
        "articleId": "",
        "content": "",
        "avatarUrl": "",
        "userName": "",
        "location": "",
        "website": "",
        "createdAt": "",
        "updatedAt": "",
        "parentId": "",
        "children": [
          {}
        ]
      }
    ]
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseCommentVO

POST addNewCommentLogin

POST /comment/add

Body 请求参数

json
{
  "areaId": "string",
  "content": "string",
  "parentId": "string"
}

请求参数

名称位置类型必选说明
bodybodyCommentLoginFormnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "areaId": "",
    "content": "",
    "avatarUrl": "",
    "userName": "",
    "location": "",
    "website": "",
    "platform": "",
    "browser": "",
    "createdAt": "",
    "updatedAt": "",
    "parentId": "",
    "parentUserName": "",
    "children": [
      {
        "id": "",
        "areaId": "",
        "content": "",
        "avatarUrl": "",
        "userName": "",
        "location": "",
        "website": "",
        "platform": "",
        "browser": "",
        "createdAt": "",
        "updatedAt": "",
        "parentId": "",
        "parentUserName": "",
        "children": [
          {}
        ]
      }
    ]
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseCommentVO

导航菜单控制器

GET getNavMenu

GET /nav

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "name": "",
      "href": "",
      "children": [
        {
          "name": "",
          "href": "",
          "children": []
        }
      ]
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListNavMenuVO

分类控制器

GET getAllCategories

GET /category/all

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": "",
      "name": "",
      "shortUrl": ""
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListCategoryVO

记录更新控制器

GET getLastStatusUpdate

GET /statusUpdate/last

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "shortUrl": "",
    "authorName": "",
    "images": [
      ""
    ],
    "title": "",
    "summary": "",
    "views": 0,
    "comments": 0,
    "likes": 0,
    "createdAt": "",
    "updatedAt": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseStatusUpdatePreview

GET getLastFourStatusUpdates

GET /statusUpdate/lastFour

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "shortUrl": "",
      "authorName": "",
      "images": [
        ""
      ],
      "title": "",
      "summary": "",
      "views": 0,
      "comments": 0,
      "likes": 0,
      "createdAt": "",
      "updatedAt": ""
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListStatusUpdatePreview

GET getAllStatusUpdates

GET /statusUpdate/all

请求参数

名称位置类型必选说明
pagequeryintegernone
pageSizequeryintegernone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "shortUrl": "",
      "authorName": "",
      "images": [
        ""
      ],
      "title": "",
      "summary": "",
      "views": 0,
      "comments": 0,
      "likes": 0,
      "createdAt": "",
      "updatedAt": ""
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListStatusUpdatePreview

GET getAllStatusUpdateShortLinksApi

GET /statusUpdate/shortLinks

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    ""
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListString

GET getStatusUpdatesByCategory

GET /statusUpdate/category/

请求参数

名称位置类型必选说明
shortUrlpathstringnone
pagequeryintegernone
pageSizequeryintegernone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "shortUrl": "",
      "authorName": "",
      "images": [
        ""
      ],
      "title": "",
      "summary": "",
      "views": 0,
      "comments": 0,
      "likes": 0,
      "createdAt": "",
      "updatedAt": ""
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListStatusUpdatePreview

GET viewOneStatusUpdate

GET /statusUpdate/

请求参数

名称位置类型必选说明
shortUrlpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "shortUrl": "",
    "authorName": "",
    "images": [
      ""
    ],
    "title": "",
    "summary": "",
    "views": 0,
    "comments": 0,
    "likes": 0,
    "createdAt": "",
    "updatedAt": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseStatusUpdateView

GET getWebsiteInfo

GET /websiteInfo

返回示例

json
{
  "": ""
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseMapString

PageController

GET getShortLinksApi

GET /page/shortLinks

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    ""
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

GET getPageContentApi

GET /page/

请求参数

名称位置类型必选说明
refPathpathstringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "id": "",
    "title": "",
    "description": "",
    "refPath": "",
    "toc": "",
    "content": "",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "commentId": "",
    "enable": false,
    "canDelete": false,
    "createdAt": "",
    "updatedAt": ""
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponsePageVO

SearchController

GET /search

请求参数

名称位置类型必选说明
keywordquerystringnone

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": {
    "pages": [
      {
        "id": 0,
        "title": "",
        "description": "",
        "content": "",
        "shortUrl": "",
        "highlightedContent": ""
      }
    ],
    "articles": [
      {
        "id": 0,
        "title": "",
        "summary": "",
        "content": "",
        "shortUrl": "",
        "highlightedContent": ""
      }
    ],
    "moments": [
      {
        "id": 0,
        "title": "",
        "summary": "",
        "content": "",
        "shortUrl": "",
        "highlightedContent": ""
      }
    ]
  }
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseAggregatedSearchResult

PageViewController

GET getPageViews

GET /page-view

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": [
    {
      "": {}
    }
  ]
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseListMapObject

UploadFileController

POST handleFileUpload

POST /upload

Body 请求参数

yaml
file: string

请求参数

名称位置类型必选说明
bodybodyobjectnone
» filebodystring(binary)none

返回示例

json
{
  "code": 0,
  "msg": "",
  "data": ""
}

返回结果

状态码状态码含义说明数据模型
200OKnoneApiResponseString

数据模型

Tag

json
{
  "id": 0,
  "name": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "deletedAt": "string"
}

属性

名称类型必选约束中文名说明
idintegerfalsenone标签ID,会由雪花算法生成
namestringfalsenone标签名称
createdAtstringfalsenone标签创建时间
updatedAtstringfalsenone标签更新时间
deletedAtstringfalsenone标签删除时间(软删除),如果不为空则表示已删除

MapString

json
{
  "key": "string"
}

属性

名称类型必选约束中文名说明
keystringfalsenonenone

ApiResponseTag

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "id": 0,
    "name": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "deletedAt": "string"
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataTagfalsenonenone

TagVO

json
{
  "tagId": "string",
  "tagName": "string",
  "articleCount": 0
}

属性

名称类型必选约束中文名说明
tagIdstringfalsenonenone
tagNamestringfalsenonenone
articleCountintegerfalsenonenone

ApiResponseListTagVO

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "tagId": "string",
      "tagName": "string",
      "articleCount": 0
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[TagVO]falsenonenone

Object

json
{}

属性

None

StatusUpdateView

json
{
  "shortUrl": "string",
  "authorName": "string",
  "authorAvatar": "string",
  "categoryName": "string",
  "images": [
    "string"
  ],
  "title": "string",
  "content": "string",
  "views": 0,
  "comments": 0,
  "likes": 0,
  "commentId": "string",
  "isTop": true,
  "isHot": true,
  "isOriginal": true,
  "createdAt": "string",
  "updatedAt": "string"
}

属性

名称类型必选约束中文名说明
shortUrlstringfalsenone说说短链接
authorNamestringfalsenone作者名字
authorAvatarstringfalsenone作者头像
categoryNamestringfalsenonenone
images[string]falsenone图片
titlestringfalsenone说说标题
contentstringfalsenone内容(Markdown 格式,由前端解析)
viewsintegerfalsenone查看次数
commentsintegerfalsenone评论次数
likesintegerfalsenone点赞次数
commentIdstringfalsenone评论区 id
isTopbooleanfalsenone是否置顶
isHotbooleanfalsenone是否热门
isOriginalbooleanfalsenone是否原创
createdAtstringfalsenone说说创建时间
updatedAtstringfalsenone说说更新时间

ApiResponseString[]

json
{
  "code": 0,
  "msg": "string",
  "data": [
    "string"
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[string]falsenonenone

ApiResponseObject

json
{
  "code": 0,
  "msg": "string",
  "data": {}
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataObjectfalsenonenone

ApiResponseStatusUpdateView

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "shortUrl": "string",
    "authorName": "string",
    "authorAvatar": "string",
    "categoryName": "string",
    "images": [
      "string"
    ],
    "title": "string",
    "content": "string",
    "views": 0,
    "comments": 0,
    "likes": 0,
    "commentId": "string",
    "isTop": true,
    "isHot": true,
    "isOriginal": true,
    "createdAt": "string",
    "updatedAt": "string"
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataStatusUpdateViewfalsenonenone

ApiResponseString

json
{
  "code": 0,
  "msg": "string",
  "data": "string"
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
datastringfalsenonenone

UserVO

json
{
  "id": "string",
  "nickname": "string",
  "email": "string",
  "avatar": "string",
  "createdAt": "string",
  "oauthProvider": "string"
}

属性

名称类型必选约束中文名说明
idstringfalsenonenone
nicknamestringfalsenonenone
emailstringfalsenonenone
avatarstringfalsenonenone
createdAtstringfalsenonenone
oauthProviderstringfalsenonenone

ApiResponseUserVO

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "nickname": "string",
    "email": "string",
    "avatar": "string",
    "createdAt": "string",
    "oauthProvider": "string"
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataUserVOfalsenonenone

UserRegisterDTO

json
{
  "nickname": "string",
  "email": "string",
  "password": "string"
}

属性

名称类型必选约束中文名说明
nicknamestringfalsenonenone
emailstringfalsenonenone
passwordstringfalsenonenone

ArticleVO

json
{
  "id": "string",
  "title": "string",
  "summary": "string",
  "toc": "string",
  "content": "string",
  "author": "string",
  "cover": "string",
  "categoryId": "string",
  "tags": "string",
  "views": 0,
  "likes": 0,
  "comments": 0,
  "shortUrl": "string",
  "isPublished": true,
  "createdAt": "string",
  "updatedAt": "string",
  "deletedAt": "string",
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

属性

名称类型必选约束中文名说明
idstringfalsenonenone
titlestringfalsenonenone
summarystringfalsenonenone
tocstringfalsenonenone
contentstringfalsenonenone
authorstringfalsenonenone
coverstringfalsenonenone
categoryIdstringfalsenonenone
tagsstringfalsenonenone
viewsintegerfalsenonenone
likesintegerfalsenonenone
commentsintegerfalsenonenone
shortUrlstringfalsenonenone
isPublishedbooleanfalsenonenone
createdAtstringfalsenonenone
updatedAtstringfalsenonenone
deletedAtstringfalsenonenone
isTopbooleanfalsenonenone
isHotbooleanfalsenonenone
isOriginalbooleanfalsenonenone

ApiResponseArticleVO

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "title": "string",
    "summary": "string",
    "toc": "string",
    "content": "string",
    "author": "string",
    "cover": "string",
    "categoryId": "string",
    "tags": "string",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "string",
    "isPublished": true,
    "createdAt": "string",
    "updatedAt": "string",
    "deletedAt": "string",
    "isTop": true,
    "isHot": true,
    "isOriginal": true
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataArticleVOfalsenonenone

ArticleDTO

json
{
  "title": "string",
  "content": "string",
  "cover": "string",
  "categoryId": "string",
  "tags": "string",
  "isPublished": true,
  "shortUrl": "string",
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

属性

名称类型必选约束中文名说明
titlestringfalsenonenone
contentstringfalsenonenone
coverstringfalsenonenone
categoryIdstringfalsenonenone
tagsstringfalsenonenone
isPublishedbooleanfalsenonenone
shortUrlstringfalsenonenone
isTopbooleanfalsenonenone
isHotbooleanfalsenonenone
isOriginalbooleanfalsenonenone

StatusUpdateVO

json
{
  "id": "string",
  "title": "string",
  "summary": "string",
  "content": "string",
  "authorName": "string",
  "img": "string",
  "categoryId": "string",
  "views": 0,
  "likes": 0,
  "comments": 0,
  "shortUrl": "string",
  "isPublished": true,
  "createdAt": "string",
  "updatedAt": "string",
  "deletedAt": "string",
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

属性

名称类型必选约束中文名说明
idstringfalsenone分享 ID,会由雪花算法生成
titlestringfalsenone分享标题
summarystringfalsenone分享摘要
contentstringfalsenone分享内容,markdown 格式,交由前端解析
authorNamestringfalsenone作者 ID,逻辑限制
imgstringfalsenone分享图片,多个图片用逗号分隔
categoryIdstringfalsenone分类 ID
viewsintegerfalsenone分享浏览量
likesintegerfalsenone分享点赞量
commentsintegerfalsenone分享评论量
shortUrlstringfalsenone分享短链接
isPublishedbooleanfalsenone是否发布(0:否,1:是)
createdAtstringfalsenone分享创建时间
updatedAtstringfalsenone分享更新时间
deletedAtstringfalsenone分享删除时间(软删除),如果不为空则表示已删除
isTopbooleanfalsenone是否置顶(0:否,1:是)
isHotbooleanfalsenone是否热门(0:否,1:是)
isOriginalbooleanfalsenone是否原创(0:否,1:是)

CategoryVO

json
{
  "id": "string",
  "name": "string",
  "shortUrl": "string",
  "isArticle": true
}

属性

名称类型必选约束中文名说明
idstringfalsenonenone
namestringfalsenonenone
shortUrlstringfalsenonenone
isArticlebooleanfalsenonenone

ApiResponseListStatusUpdateVO

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "id": "string",
      "title": "string",
      "summary": "string",
      "content": "string",
      "authorName": "string",
      "img": "string",
      "categoryId": "string",
      "views": 0,
      "likes": 0,
      "comments": 0,
      "shortUrl": "string",
      "isPublished": true,
      "createdAt": "string",
      "updatedAt": "string",
      "deletedAt": "string",
      "isTop": true,
      "isHot": true,
      "isOriginal": true
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[StatusUpdateVO]falsenonenone

ApiResponseListCategoryVO

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "id": "string",
      "name": "string",
      "shortUrl": "string",
      "isArticle": true
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[CategoryVO]falsenonenone

ApiResponseStatusUpdateVO

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "title": "string",
    "summary": "string",
    "content": "string",
    "authorName": "string",
    "img": "string",
    "categoryId": "string",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "shortUrl": "string",
    "isPublished": true,
    "createdAt": "string",
    "updatedAt": "string",
    "deletedAt": "string",
    "isTop": true,
    "isHot": true,
    "isOriginal": true
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataStatusUpdateVOfalsenonenone

ApiResponseCategoryVO

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "name": "string",
    "shortUrl": "string",
    "isArticle": true
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataCategoryVOfalsenonenone

StatusUpdateDTO

json
{
  "title": "string",
  "summary": "string",
  "content": "string",
  "img": "string",
  "categoryId": "string",
  "shortUrl": "string",
  "isPublished": true,
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

属性

名称类型必选约束中文名说明
titlestringfalsenone分享标题
summarystringfalsenone分享摘要
contentstringfalsenone分享内容,markdown 格式,交由前端解析
imgstringfalsenone分享图片,多个图片用逗号分隔
categoryIdstringfalsenone分类 ID
shortUrlstringfalsenone分享短链接
isPublishedbooleanfalsenone是否发布(0:否,1:是)
isTopbooleanfalsenone是否置顶(0:否,1:是)
isHotbooleanfalsenone是否热门(0:否,1:是)
isOriginalbooleanfalsenone是否原创(0:否,1:是)

AddCategory

json
{
  "name": "string",
  "shortUrl": "string",
  "type": true
}

属性

名称类型必选约束中文名说明
namestringfalsenonenone
shortUrlstringfalsenonenone
typebooleanfalsenonenone

PageVO

json
{
  "id": "string",
  "title": "string",
  "description": "string",
  "refPath": "string",
  "toc": "string",
  "content": "string",
  "views": 0,
  "likes": 0,
  "comments": 0,
  "commentId": "string",
  "enable": true,
  "canDelete": true,
  "createdAt": "string",
  "updatedAt": "string"
}

属性

名称类型必选约束中文名说明
idstringfalsenonenone
titlestringfalsenonenone
descriptionstringfalsenonenone
refPathstringfalsenonenone
tocstringfalsenonenone
contentstringfalsenonenone
viewsintegerfalsenonenone
likesintegerfalsenonenone
commentsintegerfalsenonenone
commentIdstringfalsenonenone
enablebooleanfalsenonenone
canDeletebooleanfalsenonenone
createdAtstringfalsenonenone
updatedAtstringfalsenonenone

ApiResponseListArticleVO

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "id": "string",
      "title": "string",
      "summary": "string",
      "toc": "string",
      "content": "string",
      "author": "string",
      "cover": "string",
      "categoryId": "string",
      "tags": "string",
      "views": 0,
      "likes": 0,
      "comments": 0,
      "shortUrl": "string",
      "isPublished": true,
      "createdAt": "string",
      "updatedAt": "string",
      "deletedAt": "string",
      "isTop": true,
      "isHot": true,
      "isOriginal": true
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[ArticleVO]falsenonenone

ApiResponsePageVO

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "title": "string",
    "description": "string",
    "refPath": "string",
    "toc": "string",
    "content": "string",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "commentId": "string",
    "enable": true,
    "canDelete": true,
    "createdAt": "string",
    "updatedAt": "string"
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataPageVOfalsenonenone

ArchiveArticle

json
{
  "title": "string",
  "shortUrl": "string",
  "category": "string",
  "createdAt": "string"
}

属性

名称类型必选约束中文名说明
titlestringfalsenonenone
shortUrlstringfalsenonenone
categorystringfalsenonenone
createdAtstringfalsenonenone

PageDTO

json
{
  "title": "string",
  "description": "string",
  "refPath": "string",
  "content": "string",
  "enable": true,
  "canComment": true
}

属性

名称类型必选约束中文名说明
titlestringfalsenonenone
descriptionstringfalsenonenone
refPathstringfalsenonenone
contentstringfalsenonenone
enablebooleanfalsenonenone
canCommentbooleanfalsenonenone

ArchiveStatusUpdate

json
{
  "title": "string",
  "shortUrl": "string",
  "category": "string",
  "createdAt": "string"
}

属性

名称类型必选约束中文名说明
titlestringfalsenonenone
shortUrlstringfalsenonenone
categorystringfalsenonenone
createdAtstringfalsenonenone

ApiResponseListPageVO

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "id": "string",
      "title": "string",
      "description": "string",
      "refPath": "string",
      "toc": "string",
      "content": "string",
      "views": 0,
      "likes": 0,
      "comments": 0,
      "commentId": "string",
      "enable": true,
      "canDelete": true,
      "createdAt": "string",
      "updatedAt": "string"
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[PageVO]falsenonenone

PostStatusToggle

json
{
  "isPublished": true,
  "isTop": true,
  "isHot": true,
  "isOriginal": true
}

属性

名称类型必选约束中文名说明
isPublishedbooleanfalsenonenone
isTopbooleanfalsenonenone
isHotbooleanfalsenonenone
isOriginalbooleanfalsenonenone

{year=0, @required={year=false}, @class={year=int}, @comment={year=}}

json
{
  "articleCount": 0,
  "statusUpdateCount": 0,
  "articles": "new ArrayList<>()",
  "statusUpdates": "new ArrayList<>()"
}

属性

名称类型必选约束中文名说明
articleCountintegerfalsenonenone
statusUpdateCountintegerfalsenonenone
articles[ArchiveArticle]falsenonenone
statusUpdates[ArchiveStatusUpdate]falsenonenone

MapArchiveSummary

json
{
  "{year=0, @required={year=false}, @class={year=int}, @comment={year=}}": {
    "articleCount": 0,
    "statusUpdateCount": 0,
    "articles": "new ArrayList<>()",
    "statusUpdates": "new ArrayList<>()"
  }
}

属性

名称类型必选约束中文名说明
{year=0, @required={year=false}, @class={year=int}, @comment={year=}}{year=0, @required={year=false}, @class={year=int}, @comment={year=}}falsenonenone

ApiResponseMapArchiveSummary

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "{year=0, @required={year=false}, @class={year=int}, @comment={year=}}": {
      "articleCount": 0,
      "statusUpdateCount": 0,
      "articles": "new ArrayList<>()",
      "statusUpdates": "new ArrayList<>()"
    }
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataMapArchiveSummaryfalsenonenone

ApiResponseListString

json
{
  "code": 0,
  "msg": "string",
  "data": [
    "string"
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[string]falsenonenone

ArticlePreview

json
{
  "id": "string",
  "title": "string",
  "shortUrl": "string",
  "authorName": "string",
  "summary": "string",
  "avatar": "string",
  "cover": "string",
  "views": 0,
  "categoryName": "string",
  "tags": "string",
  "likes": 0,
  "comments": 0,
  "isTop": true
}

属性

名称类型必选约束中文名说明
idstringfalsenonenone
titlestringfalsenone文章标题
shortUrlstringfalsenone文章短链接
authorNamestringfalsenone作者名字
summarystringfalsenone文章简介
avatarstringfalsenone作者头像
coverstringfalsenone文章封面
viewsintegerfalsenone文章浏览量
categoryNamestringfalsenone文章分类名称
tagsstringfalsenone文章标签
likesintegerfalsenone文章点赞量
commentsintegerfalsenone文章评论量
isTopbooleanfalsenone是否置顶

ApiResponseListArticlePreview

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "id": "string",
      "title": "string",
      "shortUrl": "string",
      "authorName": "string",
      "summary": "string",
      "avatar": "string",
      "cover": "string",
      "views": 0,
      "categoryName": "string",
      "tags": "string",
      "likes": 0,
      "comments": 0,
      "isTop": true
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[ArticlePreview]falsenonenone

ArticleView

json
{
  "shortUrl": "string",
  "title": "string",
  "content": "string",
  "summary": "string",
  "toc": "string",
  "authorName": "string",
  "cover": "string",
  "categoryName": "string",
  "tags": "string",
  "views": 0,
  "likes": 0,
  "comments": 0,
  "commentId": "string"
}

属性

名称类型必选约束中文名说明
shortUrlstringfalsenone文章短链接
titlestringfalsenone文章标题
contentstringfalsenone文章内容,markdown 格式,交由前端解析
summarystringfalsenone文章摘要
tocstringfalsenone文章目录
authorNamestringfalsenone作者名字
coverstringfalsenone文章封面
categoryNamestringfalsenone文章分类名称
tagsstringfalsenone文章标签
viewsintegerfalsenone文章浏览量
likesintegerfalsenone文章点赞量
commentsintegerfalsenone文章评论量
commentIdstringfalsenone挂载评论区id

ApiResponseArticleView

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "shortUrl": "string",
    "title": "string",
    "content": "string",
    "summary": "string",
    "toc": "string",
    "authorName": "string",
    "cover": "string",
    "categoryName": "string",
    "tags": "string",
    "views": 0,
    "likes": 0,
    "comments": 0,
    "commentId": "string"
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataArticleViewfalsenonenone

CommentVO

json
{
  "id": "string",
  "areaId": "string",
  "content": "string",
  "avatarUrl": "string",
  "userName": "string",
  "location": "string",
  "website": "string",
  "platform": "string",
  "browser": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "parentId": "string",
  "parentUserName": "string",
  "children": "new ArrayList<>()"
}

属性

名称类型必选约束中文名说明
idstringfalsenonenone
areaIdstringfalsenone评论区 id
contentstringfalsenone评论内容(markdown 格式)
avatarUrlstringfalsenone评论者头像
userNamestringfalsenone评论者昵称
locationstringfalsenone评论者归属地
websitestringfalsenone评论者网站
platformstringfalsenone评论者操作系统
browserstringfalsenone评论者浏览器
createdAtstringfalsenone评论创建时间
updatedAtstringfalsenone评论更新时间
parentIdstringfalsenonenone
parentUserNamestringfalsenonenone
children[CommentVO]falsenone查看时候存储子评论,而存储时候存储父评论 id

HighlightedPageDocument

json
{
  "id": 0,
  "title": "string",
  "description": "string",
  "content": "string",
  "shortUrl": "string",
  "highlightedContent": "string"
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
titlestringfalsenonenone
descriptionstringfalsenonenone
contentstringfalsenonenone
shortUrlstringfalsenonenone
highlightedContentstringfalsenonenone

ApiResponseListCommentVO

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "id": "string",
      "areaId": "string",
      "content": "string",
      "avatarUrl": "string",
      "userName": "string",
      "location": "string",
      "website": "string",
      "platform": "string",
      "browser": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "parentId": "string",
      "parentUserName": "string",
      "children": "new ArrayList<>()"
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[CommentVO]falsenonenone

HighlightedArticleDocument

json
{
  "id": 0,
  "title": "string",
  "summary": "string",
  "content": "string",
  "shortUrl": "string",
  "highlightedContent": "string"
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
titlestringfalsenonenone
summarystringfalsenonenone
contentstringfalsenonenone
shortUrlstringfalsenonenone
highlightedContentstringfalsenonenone

ApiResponseCommentVO

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "areaId": "string",
    "content": "string",
    "avatarUrl": "string",
    "userName": "string",
    "location": "string",
    "website": "string",
    "platform": "string",
    "browser": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "parentId": "string",
    "parentUserName": "string",
    "children": "new ArrayList<>()"
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataCommentVOfalsenonenone

HighlightedMomentDocument

json
{
  "id": 0,
  "title": "string",
  "summary": "string",
  "content": "string",
  "shortUrl": "string",
  "highlightedContent": "string"
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
titlestringfalsenonenone
summarystringfalsenonenone
contentstringfalsenonenone
shortUrlstringfalsenonenone
highlightedContentstringfalsenonenone

CommentNotLoginForm

json
{
  "areaId": "string",
  "content": "string",
  "userName": "string",
  "email": "string",
  "website": "string",
  "parentId": "string"
}

属性

名称类型必选约束中文名说明
areaIdstringfalsenone评论区 id
contentstringfalsenone评论内容(markdown格式)
userNamestringfalsenone评论者昵称
emailstringfalsenone评论者邮箱
websitestringfalsenone评论者网站
parentIdstringfalsenone父评论ID,如果为空则表示是顶级评论,否则是回复评论

AggregatedSearchResult

json
{
  "pages": [
    {
      "id": 0,
      "title": "string",
      "description": "string",
      "content": "string",
      "shortUrl": "string",
      "highlightedContent": "string"
    }
  ],
  "articles": [
    {
      "id": 0,
      "title": "string",
      "summary": "string",
      "content": "string",
      "shortUrl": "string",
      "highlightedContent": "string"
    }
  ],
  "moments": [
    {
      "id": 0,
      "title": "string",
      "summary": "string",
      "content": "string",
      "shortUrl": "string",
      "highlightedContent": "string"
    }
  ]
}

属性

名称类型必选约束中文名说明
pages[HighlightedPageDocument]falsenonenone
articles[HighlightedArticleDocument]falsenonenone
moments[HighlightedMomentDocument]falsenonenone

NavMenuVO

json
{
  "name": "string",
  "isArticle": true,
  "href": "string",
  "children": [
    {
      "name": "string",
      "isArticle": true,
      "href": "string",
      "children": [
        {
          "name": "string",
          "isArticle": true,
          "href": "string",
          "children": [
            {}
          ]
        }
      ]
    }
  ]
}

属性

名称类型必选约束中文名说明
namestringfalsenonenone
isArticlebooleanfalsenonenone
hrefstringfalsenonenone
children[NavMenuVO]falsenonenone

ApiResponseAggregatedSearchResult

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "pages": [
      {
        "id": 0,
        "title": "string",
        "description": "string",
        "content": "string",
        "shortUrl": "string",
        "highlightedContent": "string"
      }
    ],
    "articles": [
      {
        "id": 0,
        "title": "string",
        "summary": "string",
        "content": "string",
        "shortUrl": "string",
        "highlightedContent": "string"
      }
    ],
    "moments": [
      {
        "id": 0,
        "title": "string",
        "summary": "string",
        "content": "string",
        "shortUrl": "string",
        "highlightedContent": "string"
      }
    ]
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataAggregatedSearchResultfalsenonenone

ApiResponseListNavMenuVO

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "name": "string",
      "isArticle": true,
      "href": "string",
      "children": [
        {
          "name": "string",
          "isArticle": true,
          "href": "string",
          "children": [
            {}
          ]
        }
      ]
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[NavMenuVO]falsenonenone

StatusUpdatePreview

json
{
  "shortUrl": "string",
  "authorName": "string",
  "authorAvatar": "string",
  "images": [
    "string"
  ],
  "title": "string",
  "summary": "string",
  "views": 0,
  "comments": 0,
  "likes": 0,
  "isTop": true,
  "isHot": true,
  "createdAt": "string",
  "updatedAt": "string"
}

属性

名称类型必选约束中文名说明
shortUrlstringfalsenone说说短链接
authorNamestringfalsenone作者名字
authorAvatarstringfalsenone作者头像
images[string]falsenone图片
titlestringfalsenone说说标题
summarystringfalsenone说说摘要
viewsintegerfalsenone查看次数
commentsintegerfalsenone评论次数
likesintegerfalsenone点赞次数
isTopbooleanfalsenone是否置顶
isHotbooleanfalsenone是否热门
createdAtstringfalsenone说说创建时间
updatedAtstringfalsenone说说更新时间

ApiResponseStatusUpdatePreview

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "shortUrl": "string",
    "authorName": "string",
    "authorAvatar": "string",
    "images": [
      "string"
    ],
    "title": "string",
    "summary": "string",
    "views": 0,
    "comments": 0,
    "likes": 0,
    "isTop": true,
    "isHot": true,
    "createdAt": "string",
    "updatedAt": "string"
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataStatusUpdatePreviewfalsenonenone

ApiResponseListStatusUpdatePreview

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "shortUrl": "string",
      "authorName": "string",
      "authorAvatar": "string",
      "images": [
        "string"
      ],
      "title": "string",
      "summary": "string",
      "views": 0,
      "comments": 0,
      "likes": 0,
      "isTop": true,
      "isHot": true,
      "createdAt": "string",
      "updatedAt": "string"
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[StatusUpdatePreview]falsenonenone

CommentLoginForm

json
{
  "areaId": "string",
  "content": "string",
  "parentId": "string"
}

属性

名称类型必选约束中文名说明
areaIdstringfalsenone评论区 id
contentstringfalsenone评论内容(markdown 格式)
parentIdstringfalsenone父评论 ID,如果为空则表示是顶级评论,否则是回复评论

key

json
{}

属性

None

MapObject

json
{
  "key": {}
}

属性

名称类型必选约束中文名说明
keykeyfalsenonenone

ApiResponseListMapObject

json
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "key": {}
    }
  ]
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
data[MapObject]falsenonenone

ApiResponseMapString

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "key": "string"
  }
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
msgstringfalsenonenone
dataMapStringfalsenonenone