|
|
# 编辑plustar分类接口
|
|
|
|
|
|
> 接口名: `/guang/plustarcategory/updateCategory`
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|id|int|5|分类ID|
|
|
|
|categoryName|String|潮流原创|分类名称|
|
|
|
|contentCode|String|b714c25f503ab4e6bc143a42d1|资源位码(head)|
|
|
|
|contentCodeFoot|String|f5d0b31f4ce77e6f21f4721|资源位码(foot)|
|
|
|
---------------------
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.guang.model.PlustarCategory" >
|
|
|
update plustar_category
|
|
|
<set >
|
|
|
<if test="categoryName != null" >
|
|
|
category_name = #{categoryName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contentCode != null" >
|
|
|
content_code = #{contentCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contentCodeFoot != null" >
|
|
|
content_code_foot = #{contentCodeFoot,jdbcType=VARCHAR},
|
|
|
</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":"修改成功!"
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|