|
|
# 增加标签分类
|
|
|
|
|
|
> 接口名: `/guang/tags/addTag
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST
|
|
|
|
|
|
### 入参
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|classifyName|String|星潮教室|标签分类名称|
|
|
|
|orderBy|String|2|排序|
|
|
|
|status|String|1|是否启用|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```
|
|
|
<insert id="insertSelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleTagsClassify" >
|
|
|
insert into article_tags_classify
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="classifyName != null" >
|
|
|
classify_name,
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="orderBy != null" >
|
|
|
order_by,
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="classifyName != null" >
|
|
|
#{classifyName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="orderBy != null" >
|
|
|
#{orderBy,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200|添加成功| |
|
|
|
|400|添加失败| |
|
|
|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": "200",
|
|
|
"message":"增加成功"
|
|
|
}
|
|
|
|
|
|
``` |
...
|
...
|
|