1
|
-# 尺码管理接口服务定义
|
|
|
2
|
----------------------
|
|
|
3
|
-
|
|
|
4
|
-# 添加尺码接口
|
|
|
5
|
-
|
|
|
6
|
-> 接口名: `/product/addSize`
|
|
|
7
|
-
|
|
|
8
|
-### 入参
|
|
|
9
|
-
|
|
|
10
|
--------------------------
|
|
|
11
|
-|属性名称|类型|例子|说明|是否必填|
|
|
|
12
|
-|--------|----|----|----|--------|
|
|
|
13
|
-|sizeName|string|L|名称|是|
|
|
|
14
|
-
|
|
|
15
|
----------------------
|
|
|
16
|
-
|
|
|
17
|
-### 返回
|
|
|
18
|
-
|
|
|
19
|
-``` json
|
|
|
20
|
-{
|
|
|
21
|
- "code":200,
|
|
|
22
|
- "message":"添加成功!"
|
|
|
23
|
-}
|
|
|
24
|
-
|
|
|
25
|
-```
|
|
|
26
|
-
|
|
|
27
|
-# 获取尺码列表(没有分页)
|
|
|
28
|
-
|
|
|
29
|
-> 接口名: `/product/queryAllSizeList`
|
|
|
30
|
-
|
|
|
31
|
-### 入参
|
|
|
32
|
-
|
|
|
33
|
--------------------------
|
|
|
34
|
-|属性名称|类型|例子|说明|是否必填|
|
|
|
35
|
-|-------|----|----|----|-------|
|
|
|
36
|
---------------------------------
|
|
|
37
|
-
|
|
|
38
|
-### 返回
|
|
|
39
|
-
|
|
|
40
|
-``` json
|
|
|
41
|
-{
|
|
|
42
|
- "code": 200,
|
|
|
43
|
- "data": [
|
|
|
44
|
- {
|
|
|
45
|
- "id": 1,
|
|
|
46
|
- "sizeName": "1"
|
|
|
47
|
- },
|
|
|
48
|
- {
|
|
|
49
|
- "id": 2,
|
|
|
50
|
- "sizeName": "10#"
|
|
|
51
|
- },
|
|
|
52
|
- {
|
|
|
53
|
- "id": 3,
|
|
|
54
|
- "sizeName": "10.5码"
|
|
|
55
|
- },
|
|
|
56
|
- {
|
|
|
57
|
- "id": 4,
|
|
|
58
|
- "sizeName": "10000"
|
|
|
59
|
- }],
|
|
|
60
|
- "md5": "4ebf5e614102a54b0025164d794f8032",
|
|
|
61
|
- "message": "Product size List."
|
|
|
62
|
- }
|
|
|
63
|
-
|
|
|
64
|
-```
|
|
|
65
|
-
|
|
|
66
|
-# 获取尺码列表(有分页)
|
|
|
67
|
-
|
|
|
68
|
-> 接口名: `/product/querySizeList`
|
|
|
69
|
-
|
|
|
70
|
-### 入参
|
|
|
71
|
-
|
|
|
72
|
--------------------------
|
|
|
73
|
-|属性名称|类型|例子|说明|是否必填|
|
|
|
74
|
-|-------|----|----|----|-------|
|
|
|
75
|
-|curPage|int|1|页码|是|
|
|
|
76
|
-|pageSize|int|10|条数|是|
|
|
|
77
|
---------------------------------
|
|
|
78
|
-
|
|
|
79
|
-### 返回
|
|
|
80
|
-
|
|
|
81
|
-``` json
|
|
|
82
|
-{
|
|
|
83
|
- "code": 200,
|
|
|
84
|
- "data": {
|
|
|
85
|
- "content": [
|
|
|
86
|
- {
|
|
|
87
|
- "id": 1,
|
|
|
88
|
- "sizeName": "1"
|
|
|
89
|
- },
|
|
|
90
|
- {
|
|
|
91
|
- "id": 2,
|
|
|
92
|
- "sizeName": "10#"
|
|
|
93
|
- },
|
|
|
94
|
- {
|
|
|
95
|
- "id": 3,
|
|
|
96
|
- "sizeName": "10.5码"
|
|
|
97
|
- },
|
|
|
98
|
- {
|
|
|
99
|
- "id": 4,
|
|
|
100
|
- "sizeName": "10000"
|
|
|
101
|
- },
|
|
|
102
|
- {
|
|
|
103
|
- "id": 5,
|
|
|
104
|
- "sizeName": "105"
|
|
|
105
|
- }
|
|
|
106
|
- ],
|
|
|
107
|
- "number": 0,-第几页
|
|
|
108
|
- "size": 0,-单页记录数
|
|
|
109
|
- "totalElements": 437,--总数
|
|
|
110
|
- "totalPages": 1--总页数
|
|
|
111
|
- },
|
|
|
112
|
- "md5": "81531967e3291781f608555ca63ccd28",
|
|
|
113
|
- "message": "Product size List."
|
|
|
114
|
-}
|
|
|
115
|
-
|
|
|
116
|
-```
|
|
|
117
|
-
|
|
|
118
|
-
|
|
|
119
|
-# 更新尺码接口
|
|
|
120
|
-
|
|
|
121
|
-> 接口名: `/product/updateSize`
|
|
|
122
|
-
|
|
|
123
|
-### 入参
|
|
|
124
|
-
|
|
|
125
|
--------------------------
|
|
|
126
|
-|属性名称|类型|例子|说明|是否必填|
|
|
|
127
|
-|--------|----|----|----|--------|
|
|
|
128
|
-|id|int|15|ID|是|
|
|
|
129
|
-|sizeName|string|L|名称|是|
|
|
|
130
|
----------------------
|
|
|
131
|
-
|
|
|
132
|
-### 返回
|
|
|
133
|
-
|
|
|
134
|
-``` json
|
|
|
135
|
-{
|
|
|
136
|
- "code": 200,
|
|
|
137
|
- "data": [],
|
|
|
138
|
- "md5": "d751713988987e9331980363e24189ce",
|
|
|
139
|
- "message": "size update success."
|
|
|
140
|
-}
|
|
|
141
|
-
|
|
|
142
|
-```
|
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-# 获取单个尺码接口
|
|
|
147
|
-
|
|
|
148
|
-> 接口名: `/product/getSize`
|
|
|
149
|
-
|
|
|
150
|
-### 入参
|
|
|
151
|
-
|
|
|
152
|
--------------------------
|
|
|
153
|
-|属性名称|类型|例子|说明|是否必填|
|
|
|
154
|
-|--------|----|----|----|--------|
|
|
|
155
|
-|id |int |15 |ID |是|
|
|
|
156
|
----------------------
|
|
|
157
|
-
|
|
|
158
|
-### 返回
|
|
|
159
|
-
|
|
|
160
|
-``` json
|
|
|
161
|
-{
|
|
|
162
|
- "code": 200,
|
|
|
163
|
- "data": {
|
|
|
164
|
- "id": 9,
|
|
|
165
|
- "sizeName": "10.5码"
|
|
|
166
|
- },
|
|
|
167
|
- "md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
168
|
- "message": "Product size get success."
|
|
|
169
|
-}
|
|
|
170
|
-
|
|
|
171
|
-```
|
|
|
172
|
- |
1
|
+# 尺码属性管理接口服务定义
|
|
|
2
|
+---------------------
|
|
|
3
|
+
|
|
|
4
|
+# 添加尺码接口
|
|
|
5
|
+
|
|
|
6
|
+> 接口名: `/product/addSizeAttribute`
|
|
|
7
|
+
|
|
|
8
|
+### 入参
|
|
|
9
|
+
|
|
|
10
|
+-------------------------
|
|
|
11
|
+|属性名称|类型|例子|说明|是否必填|
|
|
|
12
|
+|--------|----|----|----|--------|
|
|
|
13
|
+|attributeName|string|后中长|名称|是|
|
|
|
14
|
+
|
|
|
15
|
+---------------------
|
|
|
16
|
+
|
|
|
17
|
+### 返回
|
|
|
18
|
+
|
|
|
19
|
+``` json
|
|
|
20
|
+{
|
|
|
21
|
+ "code":200,
|
|
|
22
|
+ "message":"添加成功!"
|
|
|
23
|
+}
|
|
|
24
|
+
|
|
|
25
|
+```
|
|
|
26
|
+
|
|
|
27
|
+
|
|
|
28
|
+# 获取尺码属性列表(有分页)
|
|
|
29
|
+
|
|
|
30
|
+> 接口名: `/product/querySizeAttributeList`
|
|
|
31
|
+
|
|
|
32
|
+### 入参
|
|
|
33
|
+
|
|
|
34
|
+-------------------------
|
|
|
35
|
+|属性名称|类型|例子|说明|是否必填|
|
|
|
36
|
+|-------|----|----|----|-------|
|
|
|
37
|
+|curPage|int|1|页码|是|
|
|
|
38
|
+|pageSize|int|10|条数|是|
|
|
|
39
|
+--------------------------------
|
|
|
40
|
+
|
|
|
41
|
+### 返回
|
|
|
42
|
+
|
|
|
43
|
+``` json
|
|
|
44
|
+{
|
|
|
45
|
+ "code": 200,
|
|
|
46
|
+ "data": {
|
|
|
47
|
+ "list": [
|
|
|
48
|
+ {
|
|
|
49
|
+ "attributeName": "衣长",
|
|
|
50
|
+ "id": 60,
|
|
|
51
|
+ "orderBy": 0
|
|
|
52
|
+ },
|
|
|
53
|
+ {
|
|
|
54
|
+ "attributeName": "胸底围",
|
|
|
55
|
+ "id": 61,
|
|
|
56
|
+ "orderBy": 0
|
|
|
57
|
+ },
|
|
|
58
|
+ {
|
|
|
59
|
+ "attributeName": "防水台",
|
|
|
60
|
+ "id": 62,
|
|
|
61
|
+ "orderBy": 1
|
|
|
62
|
+ },
|
|
|
63
|
+ {
|
|
|
64
|
+ "attributeName": "品牌尺寸",
|
|
|
65
|
+ "id": 63,
|
|
|
66
|
+ "orderBy": 1
|
|
|
67
|
+ },
|
|
|
68
|
+ {
|
|
|
69
|
+ "attributeName": "半径",
|
|
|
70
|
+ "id": 64,
|
|
|
71
|
+ "orderBy": 1
|
|
|
72
|
+ }
|
|
|
73
|
+ ],
|
|
|
74
|
+ "page": 0,-第几页
|
|
|
75
|
+ "size": 0,-单页记录数
|
|
|
76
|
+ "total": 437,--总数
|
|
|
77
|
+ "totalPage": 1--总页数
|
|
|
78
|
+ },
|
|
|
79
|
+ "md5": "81531967e3291781f608555ca63ccd28",
|
|
|
80
|
+ "message": "Product size List."
|
|
|
81
|
+}
|
|
|
82
|
+
|
|
|
83
|
+```
|
|
|
84
|
+
|
|
|
85
|
+
|
|
|
86
|
+# 更新尺码属性接口
|
|
|
87
|
+
|
|
|
88
|
+> 接口名: `/product/updateSizeAttribute`
|
|
|
89
|
+
|
|
|
90
|
+### 入参
|
|
|
91
|
+
|
|
|
92
|
+-------------------------
|
|
|
93
|
+|属性名称|类型|例子|说明|是否必填|
|
|
|
94
|
+|--------|----|----|----|--------|
|
|
|
95
|
+|id|int|15|ID|是|
|
|
|
96
|
+|attributeName|string|后中长|名称|是|
|
|
|
97
|
+---------------------
|
|
|
98
|
+
|
|
|
99
|
+### 返回
|
|
|
100
|
+
|
|
|
101
|
+``` json
|
|
|
102
|
+{
|
|
|
103
|
+ "code": 200,
|
|
|
104
|
+ "data": [],
|
|
|
105
|
+ "md5": "d751713988987e9331980363e24189ce",
|
|
|
106
|
+ "message": "size update success."
|
|
|
107
|
+}
|
|
|
108
|
+
|
|
|
109
|
+```
|
|
|
110
|
+
|
|
|
111
|
+
|
|
|
112
|
+
|
|
|
113
|
+# 获取单个尺码属性接口
|
|
|
114
|
+
|
|
|
115
|
+> 接口名: `/product/getSizeAttribute`
|
|
|
116
|
+
|
|
|
117
|
+### 入参
|
|
|
118
|
+
|
|
|
119
|
+-------------------------
|
|
|
120
|
+|属性名称|类型|例子|说明|是否必填|
|
|
|
121
|
+|--------|----|----|----|--------|
|
|
|
122
|
+|id |int |15 |ID |是|
|
|
|
123
|
+---------------------
|
|
|
124
|
+
|
|
|
125
|
+### 返回
|
|
|
126
|
+
|
|
|
127
|
+``` json
|
|
|
128
|
+{
|
|
|
129
|
+ "code": 200,
|
|
|
130
|
+ "data":{
|
|
|
131
|
+ "attributeName": "半径",
|
|
|
132
|
+ "id": 64,
|
|
|
133
|
+ "orderBy": 1
|
|
|
134
|
+ },
|
|
|
135
|
+ "md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
136
|
+ "message": "Product size get success."
|
|
|
137
|
+}
|
|
|
138
|
+
|
|
|
139
|
+```
|
|
|
140
|
+ |