Authored by simba

添加标签分类

  1 +# 增加标签分类
  2 +
  3 +> 接口名: `/guang/tags/addTag
  4 +
  5 +### 方法
  6 +
  7 +> POST
  8 +
  9 +### 入参
  10 +-------------------------
  11 +|属性名称|类型|例子|说明|
  12 +|--------|----|----|----|
  13 +|classifyName|String|星潮教室|标签分类名称|
  14 +|orderBy|String|2|排序|
  15 +|status|String|1|是否启用|
  16 +---------------------
  17 +
  18 +
  19 +### 对应SQL的操作库表
  20 +
  21 +```
  22 + <insert id="insertSelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleTagsClassify" >
  23 + insert into article_tags_classify
  24 + <trim prefix="(" suffix=")" suffixOverrides="," >
  25 + <if test="id != null" >
  26 + id,
  27 + </if>
  28 + <if test="classifyName != null" >
  29 + classify_name,
  30 + </if>
  31 + <if test="status != null" >
  32 + status,
  33 + </if>
  34 + <if test="orderBy != null" >
  35 + order_by,
  36 + </if>
  37 + <if test="createTime != null" >
  38 + create_time,
  39 + </if>
  40 + </trim>
  41 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  42 + <if test="id != null" >
  43 + #{id,jdbcType=INTEGER},
  44 + </if>
  45 + <if test="classifyName != null" >
  46 + #{classifyName,jdbcType=VARCHAR},
  47 + </if>
  48 + <if test="status != null" >
  49 + #{status,jdbcType=TINYINT},
  50 + </if>
  51 + <if test="orderBy != null" >
  52 + #{orderBy,jdbcType=TINYINT},
  53 + </if>
  54 + <if test="createTime != null" >
  55 + #{createTime,jdbcType=INTEGER},
  56 + </if>
  57 + </trim>
  58 + </insert>
  59 +```
  60 +
  61 +### 错误编码
  62 +
  63 +-------------------------
  64 +|错误码code|消息|说明|
  65 +|--------|----|----|
  66 +|200|添加成功| |
  67 +|400|添加失败| |
  68 +
  69 +
  70 +### 返回
  71 +
  72 +``` json
  73 +{
  74 + "code": "200",
  75 + "message":"增加成功"
  76 +}
  77 +
  78 +```