跳至主要內容

站内CMS

Alex大约 6 分钟开发文档API接口文档

文章内容-移动端

GET 文章详情

GET /front/cms/articleBase/get

文章列表

请求参数

名称位置类型必选说明
article_idqueryintegerarticle_id

返回示例

200 Response

{
  "code": 0,
  "data": {
    "article_add_time": "2019-08-24T14:15:22Z",
    "article_content": "string",
    "article_excerpt": "string",
    "article_id": 0,
    "article_image": "string",
    "article_is_popular": false,
    "article_lang": "string",
    "article_name": "string",
    "article_reply_flag": false,
    "article_seo_description": "string",
    "article_seo_keywords": "string",
    "article_seo_title": "string",
    "article_sort": 0,
    "article_status": false,
    "article_tag_list": [
      {
        "tag_count": 0,
        "tag_id": 0,
        "tag_name": "string",
        "user_id": 0,
        "version": 0
      }
    ],
    "article_tags": "string",
    "article_template": "string",
    "article_title": "string",
    "article_type": 0,
    "article_url": "string",
    "category_id": 0,
    "user_id": 0,
    "user_nickname": "string"
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 文章列表

GET /front/cms/articleBase/list

文章列表

请求参数

名称位置类型必选说明
articleTitlequerystring标题
articleTypequeryinteger文章类型(ENUM):1-文章;2-公告
categoryIdqueryinteger所属分类
createTimeEndquerystring创建时间结束值
createTimeStartquerystring创建时间起始值
like[0].columnquerystring搜索字段
like[0].likequerystring搜索字符
order[0].sidxquerystring排序字段
order[0].sortquerystring排序方式
pagequeryinteger分页查询页码
sidxquerystring排序字段
sizequeryinteger分页查询每页数量
sortquerystring排序方式
tagIdqueryinteger文章标签
userIdqueryinteger文章作者

返回示例

200 Response

{
  "code": 0,
  "data": {
    "items": [
      {
        "article_add_time": "2019-08-24T14:15:22Z",
        "article_content": "string",
        "article_excerpt": "string",
        "article_id": 0,
        "article_image": "string",
        "article_is_popular": false,
        "article_lang": "string",
        "article_name": "string",
        "article_reply_flag": false,
        "article_seo_description": "string",
        "article_seo_keywords": "string",
        "article_seo_title": "string",
        "article_sort": 0,
        "article_status": false,
        "article_tag_list": [
          {
            "tag_count": 0,
            "tag_id": 0,
            "tag_name": "string",
            "user_id": 0,
            "version": 0
          }
        ],
        "article_tags": "string",
        "article_template": "string",
        "article_title": "string",
        "article_type": 0,
        "article_url": "string",
        "category_id": 0,
        "user_id": 0,
        "user_nickname": "string"
      }
    ],
    "page": 0,
    "records": 0,
    "size": 0,
    "total": 0
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline