|
|
# 修改标签分类
|
|
|
|
|
|
> 接口名: `/guang/tags/updateTag
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST
|
|
|
|
|
|
### 入参
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|id|Integer|1|ID主键|
|
|
|
|classifyName|String|星潮教室|标签分类名称|
|
|
|
|orderBy|String|2|排序|
|
|
|
|status|String|1|是否启用|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleTagsClassify" >
|
|
|
update article_tags_classify
|
|
|
<set >
|
|
|
<if test="classifyName != null" >
|
|
|
classify_name = #{classifyName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="orderBy != null" >
|
|
|
order_by = #{orderBy,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200|修改成功| |
|
|
|
|400|修改失败| |
|
|
|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": "200",
|
|
|
"message":"修改成功"
|
|
|
}
|
|
|
|
|
|
``` |
...
|
...
|
|