1. Schemas
Blog-System
  • 认证
    • 用户注册
      POST
    • 用户登录
      POST
  • 文章
    • 获取文章列表
      GET
    • 创建文章
      POST
    • 获取文章详情
      GET
    • 更新文章
      PUT
    • 删除文章
      DELETE
    • 点赞/取消点赞文章
      POST
  • 评论
    • 获取评论列表
      GET
    • 创建评论
      POST
    • 回复评论
      POST
    • 点赞/取消点赞评论
      POST
  • 分类
    • 获取分类列表
    • 创建分类
  • 标签
    • 获取标签列表
    • 创建标签
  • 文件上传
    • 上传图片
  • 个人资料
    • 获取个人信息
    • 更新个人信息
  • 管理员
    • 获取系统统计
    • 获取操作日志
  • 监控
    • 提交错误报告
  • 数据模型
    • Schemas
      • ApiResponse
      • ErrorResponse
      • User
      • Article
      • Category
      • Tag
      • Comment
      • PaginationResponse
      • RegisterRequest
      • LoginRequest
      • AuthResponse
      • CreateArticleRequest
      • CreateCategoryRequest
      • CreateTagRequest
      • UploadResponse
  1. Schemas

Comment

{
    "id": 0,
    "content": "string",
    "user_id": 0,
    "article_id": 0,
    "parent_id": 0,
    "likes": 0,
    "is_liked": true,
    "user": {
        "id": 0,
        "username": "string",
        "avatar": "string"
    },
    "replies": [
        {
            "id": 0,
            "content": "string",
            "user_id": 0,
            "article_id": 0,
            "parent_id": 0,
            "likes": 0,
            "is_liked": true,
            "user": {
                "id": 0,
                "username": "string",
                "avatar": "string"
            },
            "replies": [],
            "created_at": "2019-08-24T14:15:22.123Z",
            "updated_at": "2019-08-24T14:15:22.123Z"
        }
    ],
    "created_at": "2019-08-24T14:15:22.123Z",
    "updated_at": "2019-08-24T14:15:22.123Z"
}
Built with