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