标签管理接口服务定义 --------------------- ## 标签列表查询 > 接口名: '/guang/tags/getList' ### 入参 ------------------------- |属性名称|类型|例子|说明| |--------|----|----|----| |tagName|String|运动|标签名称| |classifyId|int|1|分类名称| |isHot|int|1|是否热门| --------------------- ### 返回 ``` json { "code":200, "message":"操作成功", "data": { "list": [ { "id": "1", //标签ID "tagName": "运动", //标签名称 "classifyId": "2", //分类ID "isHot": "1", //是否热门,0非热门,1热门 "status": "1", //状态,0关闭,1开启 "createTime": "1432113792", //创建时间 "cover":"xxx.png", "orderBy":"1" } ] } } ``` ## 添加标签接口 > 接口名: '/guang/tags/addTag' `Note: 上传图片 Bucket 用 articleTags` ### 入参 ------------------------- |属性名称|类型|例子|说明| |--------|----|----|----| |tagName|String|运动|标签名称| |classifyId|int|1|分类ID| |isHot|int|1|是否热门| |status|int|1|是否启用| |cover |string|http://img11.static.yhbimg.com/plustar/2016/04/19/02/019be7398cad5ac1e2170938d3d2d02e20.jpg|封面| |orderBy |int|1|排序| --------------------- ### 返回 ``` json { "code":200, "message":"添加成功!" } ``` ## 编辑标签接口 > 接口名: '/guang/tags/updateTag' ### 入参 ------------------------- |属性名称|类型|例子|说明| |--------|----|----|----| |id|int|1|标签ID| |tagName|String|运动|标签名称| |classifyId|int|1|分类ID| |isHot|int|1|是否热门| |status|int|1|是否启用| |cover |string|http://img11.static.yhbimg.com/plustar/2016/04/19/02/019be7398cad5ac1e2170938d3d2d02e20.jpg|封面| |orderBy |int|1|排序| --------------------- ### 返回 ``` json { "code":200, "message":"修改成功!" } ``` ## 编辑时标签详情接口 > 接口名: '/guang/tags/getDetail' ### 入参 ------------------------- |属性名称|类型|例子|说明| |--------|----|----|----| |id|int|1|标签id| --------------------- ### 返回 ``` json { "code":200, "message":"操作成功", "data": { "id": "1", //标签ID "tagName": "运动", //标签名称 "classifyId": "2", //分类ID "isHot": "1", //是否热门,0非热门,1热门 "status": "1", //状态,0关闭,1开启 "createTime": "1432113792", //创建时间 "cover": "http://img11.static.yhbimg.com\\plustar/2016/04/19/02/019be7398cad5ac1e2170938d3d2d02e20.jpg", "orderBy": 1 } } ``` ## 删除标签接口 > 接口名: '/guang/tags/delTag' ### 入参 ------------------------- |属性名称|类型|例子|说明| |--------|----|----|----| |id|int|1|标签id| --------------------- ### 返回 ``` json { "code":200, "message":"删除成功!" } ``` ## 新增或编辑时获取标签分类列表 > 接口名: '/guang/tagSort/getTagItems' ### 入参 ------------------------- |属性名称|类型|例子|说明| |--------|----|----|----| |status|int|1|开启状态的分类| --------------------- ### 返回 ``` json { "code":200, "message":"操作成功", "data": [ { "id": "1", "text":"搭配风格" } ] } ```