|
|
# 添加尺码接口
|
|
|
# 查询风格列表
|
|
|
|
|
|
> 接口名: `/product/addSize`
|
|
|
> 接口名: `/productStyle/queryProductStyles4Select`
|
|
|
|
|
|
### 方法
|
|
|
|
...
|
...
|
@@ -11,21 +11,17 @@ |
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|--------|----|----|---|----|--------|
|
|
|
|sizeName|string|L|名称|是|10
|
|
|
|
|
|
|
|
|
|
|
|
### 对应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>
|
|
|
<select id="selectAll" resultMap="BaseResultMap" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from product_style
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
...
|
...
|
@@ -40,8 +36,22 @@ |
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"添加成功!"
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"id": "989",
|
|
|
"text": "cc-styleName"
|
|
|
},
|
|
|
{
|
|
|
"id": "990",
|
|
|
"text": "户外"
|
|
|
},
|
|
|
{
|
|
|
"id": "991",
|
|
|
"text": "街头"
|
|
|
}
|
|
|
],
|
|
|
"md5": "9020bc382b83709c2961bf8548e069b2",
|
|
|
"message": "成功"
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|