Showing
1 changed file
with
24 additions
and
13 deletions
1 | -# 添加尺码接口 | 1 | +# 查询舒适度列表 |
2 | 2 | ||
3 | -> 接口名: `/product/addSize` | 3 | +> 接口名: `/productComfort/queryProductComfortList` |
4 | 4 | ||
5 | ### 方法 | 5 | ### 方法 |
6 | 6 | ||
@@ -11,21 +11,13 @@ | @@ -11,21 +11,13 @@ | ||
11 | ------------------------- | 11 | ------------------------- |
12 | |属性名称|类型|例子|说明|是否必填|长度限制| | 12 | |属性名称|类型|例子|说明|是否必填|长度限制| |
13 | |--------|----|----|---|----|--------| | 13 | |--------|----|----|---|----|--------| |
14 | -|sizeName|string|L|名称|是|10 | ||
15 | 14 | ||
16 | 15 | ||
17 | 16 | ||
18 | ### 对应SQL的操作库表 | 17 | ### 对应SQL的操作库表 |
19 | 18 | ||
20 | ```xml | 19 | ```xml |
21 | - <insert id="insert" parameterType="com.yohobuy.platform.dal.product.model.Size" > | ||
22 | - insert into size (id, size_name, sort_id, | ||
23 | - attribute_id, order_by, create_time, | ||
24 | - update_time) | ||
25 | - values (#{id,jdbcType=SMALLINT}, #{sizeName,jdbcType=VARCHAR}, #{sortId,jdbcType=SMALLINT}, | ||
26 | - #{attributeId,jdbcType=VARCHAR}, #{orderBy,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, | ||
27 | - #{updateTime,jdbcType=INTEGER}) | ||
28 | - </insert> | 20 | + 无 |
29 | ``` | 21 | ``` |
30 | 22 | ||
31 | ### 错误编码 | 23 | ### 错误编码 |
@@ -40,8 +32,27 @@ | @@ -40,8 +32,27 @@ | ||
40 | 32 | ||
41 | ``` json | 33 | ``` json |
42 | { | 34 | { |
43 | - "code":200, | ||
44 | - "message":"添加成功!" | 35 | + "code": 200, |
36 | + "data": [ | ||
37 | + { | ||
38 | + "id": "1", | ||
39 | + "text": "弹性" | ||
40 | + }, | ||
41 | + { | ||
42 | + "id": "2", | ||
43 | + "text": "厚度" | ||
44 | + }, | ||
45 | + { | ||
46 | + "id": "3", | ||
47 | + "text": "柔软度" | ||
48 | + }, | ||
49 | + { | ||
50 | + "id": "4", | ||
51 | + "text": "透气性" | ||
52 | + } | ||
53 | + ], | ||
54 | + "md5": "69e7b2646a1bc80226fbed71ae6b57f1", | ||
55 | + "message": "查询舒适度成功" | ||
45 | } | 56 | } |
46 | 57 | ||
47 | ``` | 58 | ``` |
-
Please register or login to post a comment