|
|
# 添加plustar分类接口
|
|
|
|
|
|
> 接口名: `/guang/plustarcategory/addCategory`
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|categoryName|String|潮流原创|分类名称|
|
|
|
|contentCode|String|b714c25f503ab4e6bc143a42d1|资源位码(head)|
|
|
|
|contentCodeFoot|String|f5d0b31f4ce77e6f21f4721|资源位码(foot)|
|
|
|
---------------------
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<insert id="insertSelective" parameterType="com.yohobuy.platform.dal.guang.model.PlustarCategory" >
|
|
|
insert into plustar_category
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="categoryName != null" >
|
|
|
category_name,
|
|
|
</if>
|
|
|
<if test="contentCode != null" >
|
|
|
content_code,
|
|
|
</if>
|
|
|
<if test="contentCodeFoot != null" >
|
|
|
content_code_foot,
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="categoryName != null" >
|
|
|
#{categoryName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contentCode != null" >
|
|
|
#{contentCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contentCodeFoot != null" >
|
|
|
#{contentCodeFoot,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200| 添加成功!| |
|
|
|
|400| 添加失败!| |
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"添加成功!"
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|