|
|
# 修改资讯标签
|
|
|
|
|
|
> 接口名: `/guang/tags/updateTag
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST
|
|
|
|
|
|
### 入参
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|--------|----|----|----|----|----|
|
|
|
|id|int|1|ID主键||1-11|
|
|
|
|tagName|String|运动|标签名称||1-6|
|
|
|
|classifyId|String|2|分类名称||1-11|
|
|
|
|status|String|1|是否启用||1-1|
|
|
|
|isHot|String|1|是否热门||1-1|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleTags" >
|
|
|
update article_tags
|
|
|
<set >
|
|
|
<if test="tagName != null" >
|
|
|
tag_name = #{tagName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="classifyId != null" >
|
|
|
classify_id = #{classifyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="isHot != null" >
|
|
|
is_hot = #{isHot,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status = #{status,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":"修改成功"
|
|
|
}
|
|
|
``` |
|
|
# 修改资讯标签
|
|
|
|
|
|
> 接口名: `/guang/tags/updateTag
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST
|
|
|
|
|
|
### 入参
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|范围|
|
|
|
|--------|----|----|----|----|----|
|
|
|
|id|int|1|ID主键|是|1-11|
|
|
|
|tagName|String|运动|标签名称|是|1-6|
|
|
|
|classifyId|String|2|分类名称|是|1-11|
|
|
|
|status|String|1|是否启用|否|0-1|
|
|
|
|isHot|String|1|是否热门|否|0-1|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleTags" >
|
|
|
update article_tags
|
|
|
<set >
|
|
|
<if test="tagName != null" >
|
|
|
tag_name = #{tagName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="classifyId != null" >
|
|
|
classify_id = #{classifyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="isHot != null" >
|
|
|
is_hot = #{isHot,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status = #{status,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":"修改成功"
|
|
|
}
|
|
|
``` |
...
|
...
|
|