添加一个专题

接口描述:

  • 添加一个专题。

请求 URL:

  • http|https://host/api/v1/topic/method/add.topic.item/

请求方式:

  • GET
  • POST

是否授权:

  • 需要授权

业务参数:

参数名 类型 是否必须 范围值 默认值 示例值 描述
title string max:200 标题 专题标题
alias string max:100 短标题 专题别名
content string min:0 正文 专题内容
keywords string max:255 关键词 专题关键词
description string max:255 描述 专题描述
status integer in:0,1 1 1 专题是否显示 0=否 1=是

响应参数:

参数名 类型 是否返回 示例值 描述
status integer 200 状态码
message string success 消息信息
data object [] 返回对象
data 类型 是否返回 示例值 描述
title string 标题 专题标题
alias string 短标题 专题别名
content string 正文 专题内容
keywords string 关键词 专题关键词
description string 描述 专题描述
status integer 1 专题是否显示 0=否 1=是
create_time datetime 2018-05-04 09:25:34 创建时间
update_time datetime 2018-05-04 09:25:34 更新时间
topic_id integer 27 专题编号

响应示例:

  1. {
  2. "status": 200,
  3. "message": "success",
  4. "data": {
  5. "title": "标题",
  6. "alias": "短标题",
  7. "content": "正文",
  8. "keywords": "关键词",
  9. "description": "描述",
  10. "status": 1,
  11. "create_time": "2018-05-04 09:25:34",
  12. "update_time": "2018-05-04 09:25:34",
  13. "topic_id": 27
  14. }
  15. }

备注: