Showing
1 changed file
with
57 additions
and
46 deletions
1 | -# 添加尺码接口 | ||
2 | - | ||
3 | -> 接口名: `/product/addSize` | ||
4 | - | ||
5 | -### 方法 | ||
6 | - | ||
7 | -> POST JSONRAW | ||
8 | - | ||
9 | -### 入参 | ||
10 | - | ||
11 | -------------------------- | ||
12 | -|属性名称|类型|例子|说明|是否必填|长度限制| | ||
13 | -|--------|----|----|---|----|--------| | ||
14 | -|sizeName|string|L|名称|是|10 | ||
15 | - | ||
16 | - | ||
17 | - | ||
18 | -### 对应SQL的操作库表 | ||
19 | - | ||
20 | -```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> | ||
29 | -``` | ||
30 | - | ||
31 | -### 错误编码 | ||
32 | - | ||
33 | -------------------------- | ||
34 | -|错误码code|消息|说明| | ||
35 | -|--------|----|----| | ||
36 | -|200| 添加成功!| | | ||
37 | -|400| 操作失败!| | | ||
38 | - | ||
39 | -### 返回 | ||
40 | - | ||
41 | -``` json | ||
42 | -{ | ||
43 | - "code":200, | ||
44 | - "message":"添加成功!" | ||
45 | -} | ||
46 | - | 1 | +# 查询舒适度列表 |
2 | + | ||
3 | +> 接口名: `/productComfort/queryProductComfortList` | ||
4 | + | ||
5 | +### 方法 | ||
6 | + | ||
7 | +> POST JSONRAW | ||
8 | + | ||
9 | +### 入参 | ||
10 | + | ||
11 | +------------------------- | ||
12 | +|属性名称|类型|例子|说明|是否必填|长度限制| | ||
13 | +|--------|----|----|---|----|--------| | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | +### 对应SQL的操作库表 | ||
18 | + | ||
19 | +```xml | ||
20 | + 无 | ||
21 | +``` | ||
22 | + | ||
23 | +### 错误编码 | ||
24 | + | ||
25 | +------------------------- | ||
26 | +|错误码code|消息|说明| | ||
27 | +|--------|----|----| | ||
28 | +|200| 添加成功!| | | ||
29 | +|400| 操作失败!| | | ||
30 | + | ||
31 | +### 返回 | ||
32 | + | ||
33 | +``` json | ||
34 | +{ | ||
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": "查询舒适度成功" | ||
56 | +} | ||
57 | + | ||
47 | ``` | 58 | ``` |
-
Please register or login to post a comment