Authored by mali

删除单个搭配

# 添加尺码接口
# 删除单个搭配
> 接口名: `/product/addSize`
> 接口名: `/collocation/delCollocationById`
### 方法
... ... @@ -11,21 +11,17 @@
-------------------------
|属性名称|类型|例子|说明|是否必填|长度限制|
|--------|----|----|---|----|--------|
|sizeName|string|L|名称|是|10
|param|number||搭配的主键|必填|11|
### 对应SQL的操作库表
```xml
<insert id="insert" parameterType="com.yohobuy.platform.dal.product.model.Size" >
insert into size (id, size_name, sort_id,
attribute_id, order_by, create_time,
update_time)
values (#{id,jdbcType=SMALLINT}, #{sizeName,jdbcType=VARCHAR}, #{sortId,jdbcType=SMALLINT},
#{attributeId,jdbcType=VARCHAR}, #{orderBy,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER},
#{updateTime,jdbcType=INTEGER})
</insert>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from product_collocation
where id = #{id,jdbcType=INTEGER}
</delete>
```
### 错误编码
... ... @@ -35,13 +31,16 @@
|--------|----|----|
|200| 添加成功!| |
|400| 操作失败!| |
|500| 操作失败!| |
### 返回
``` json
{
"code":200,
"message":"添加成功!"
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "delete collocation success."
}
```
\ No newline at end of file
... ...