Showing
1 changed file
with
60 additions
and
0 deletions
1 | +# 修改标签分类 | ||
2 | + | ||
3 | +> 接口名: `/guang/tags/updateTag | ||
4 | + | ||
5 | +### 方法 | ||
6 | + | ||
7 | +> POST | ||
8 | + | ||
9 | +### 入参 | ||
10 | +------------------------- | ||
11 | +|属性名称|类型|例子|说明| | ||
12 | +|--------|----|----|----| | ||
13 | +|id|Integer|1|ID主键| | ||
14 | +|classifyName|String|星潮教室|标签分类名称| | ||
15 | +|orderBy|String|2|排序| | ||
16 | +|status|String|1|是否启用| | ||
17 | +--------------------- | ||
18 | + | ||
19 | + | ||
20 | +### 对应SQL的操作库表 | ||
21 | + | ||
22 | +``` | ||
23 | + <update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleTagsClassify" > | ||
24 | + update article_tags_classify | ||
25 | + <set > | ||
26 | + <if test="classifyName != null" > | ||
27 | + classify_name = #{classifyName,jdbcType=VARCHAR}, | ||
28 | + </if> | ||
29 | + <if test="status != null" > | ||
30 | + status = #{status,jdbcType=TINYINT}, | ||
31 | + </if> | ||
32 | + <if test="orderBy != null" > | ||
33 | + order_by = #{orderBy,jdbcType=TINYINT}, | ||
34 | + </if> | ||
35 | + <if test="createTime != null" > | ||
36 | + create_time = #{createTime,jdbcType=INTEGER}, | ||
37 | + </if> | ||
38 | + </set> | ||
39 | + where id = #{id,jdbcType=INTEGER} | ||
40 | + </update> | ||
41 | +``` | ||
42 | + | ||
43 | +### 错误编码 | ||
44 | + | ||
45 | +------------------------- | ||
46 | +|错误码code|消息|说明| | ||
47 | +|--------|----|----| | ||
48 | +|200|修改成功| | | ||
49 | +|400|修改失败| | | ||
50 | + | ||
51 | + | ||
52 | +### 返回 | ||
53 | + | ||
54 | +``` json | ||
55 | +{ | ||
56 | + "code": "200", | ||
57 | + "message":"修改成功" | ||
58 | +} | ||
59 | + | ||
60 | +``` |
-
Please register or login to post a comment