Showing
1 changed file
with
173 additions
and
172 deletions
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/addSortSize` | ||
7 | + | ||
8 | +### 入参 | ||
9 | + | ||
10 | +------------------------- | ||
11 | +|属性名称|类型|例子|说明|是否必填| | ||
12 | +|--------|----|----|----|--------| | ||
13 | +|sortId|int|1|分类id|是| | ||
14 | +|sizeId|int|2|尺码id|是| | ||
15 | +|orderBy|int|3|排序|是| | ||
16 | + | ||
17 | + | ||
18 | +--------------------- | ||
19 | + | ||
20 | +### 返回 | ||
21 | + | ||
22 | +``` json | ||
23 | +{ | ||
24 | + "code":200, | ||
25 | + "message":"添加成功!" | ||
26 | +} | ||
27 | + | ||
28 | +``` | ||
29 | + | ||
30 | +# 获取品类尺码列表(没有分页) | ||
31 | + | ||
32 | +> 接口名: `/product/querySizeListBySortId` | ||
33 | + | ||
34 | +### 入参 | ||
35 | + | ||
36 | +------------------------- | ||
37 | +|属性名称|类型|例子|说明|是否必填| | ||
38 | +|sortId|int |1 |分类id|是| | ||
39 | +|-------|----|----|----|-------| | ||
40 | +-------------------------------- | ||
41 | + | ||
42 | +### 返回 | ||
43 | + | ||
44 | +``` json | ||
45 | +{ | ||
46 | + "code": 200, | ||
47 | + "data": { | ||
48 | + "list": [ | ||
49 | + { | ||
50 | + "orderBy": 1, | ||
51 | + "sizeId": 199, | ||
52 | + "sizeName": "F", | ||
53 | + "sortId": 72, | ||
54 | + "sortName": "耳钉/耳环" | ||
55 | + }, | ||
56 | + { | ||
57 | + "orderBy": 1, | ||
58 | + "sizeId": 201, | ||
59 | + "sizeName": "L", | ||
60 | + "sortId": 72, | ||
61 | + "sortName": "耳钉/耳环" | ||
62 | + }, | ||
63 | + { | ||
64 | + "orderBy": 1, | ||
65 | + "sizeId": 203, | ||
66 | + "sizeName": "M", | ||
67 | + "sortId": 72, | ||
68 | + "sortName": "耳钉/耳环" | ||
69 | + }, | ||
70 | + { | ||
71 | + "orderBy": 1, | ||
72 | + "sizeId": 204, | ||
73 | + "sizeName": "M/L", | ||
74 | + "sortId": 72, | ||
75 | + "sortName": "耳钉/耳环" | ||
76 | + }, | ||
77 | + { | ||
78 | + "orderBy": 1, | ||
79 | + "sizeId": 207, | ||
80 | + "sizeName": "S", | ||
81 | + "sortId": 72, | ||
82 | + "sortName": "耳钉/耳环" | ||
83 | + }, | ||
84 | + { | ||
85 | + "orderBy": 1, | ||
86 | + "sizeId": 211, | ||
87 | + "sizeName": "XL", | ||
88 | + "sortId": 72, | ||
89 | + "sortName": "耳钉/耳环" | ||
90 | + }, | ||
91 | + { | ||
92 | + "orderBy": 1, | ||
93 | + "sizeId": 213, | ||
94 | + "sizeName": "XS", | ||
95 | + "sortId": 72, | ||
96 | + "sortName": "耳钉/耳环" | ||
97 | + }, | ||
98 | + { | ||
99 | + "orderBy": 1, | ||
100 | + "sizeId": 214, | ||
101 | + "sizeName": "XS/S", | ||
102 | + "sortId": 72, | ||
103 | + "sortName": "耳钉/耳环" | ||
104 | + }, | ||
105 | + { | ||
106 | + "orderBy": 1, | ||
107 | + "sizeId": 216, | ||
108 | + "sizeName": "XXL", | ||
109 | + "sortId": 72, | ||
110 | + "sortName": "耳钉/耳环" | ||
111 | + }, | ||
112 | + { | ||
113 | + "orderBy": 1, | ||
114 | + "sizeId": 217, | ||
115 | + "sizeName": "XXS", | ||
116 | + "sortId": 72, | ||
117 | + "sortName": "耳钉/耳环" | ||
118 | + }, | ||
119 | + { | ||
120 | + "orderBy": 1, | ||
121 | + "sizeId": 218, | ||
122 | + "sizeName": "XXXL", | ||
123 | + "sortId": 72, | ||
124 | + "sortName": "耳钉/耳环" | ||
125 | + }, | ||
126 | + { | ||
127 | + "orderBy": 1, | ||
128 | + "sizeId": 348, | ||
129 | + "sizeName": "XXXXL", | ||
130 | + "sortId": 72, | ||
131 | + "sortName": "耳钉/耳环" | ||
132 | + } | ||
133 | + ], | ||
134 | + "page": 0, | ||
135 | + "size": 0, | ||
136 | + "total": 0, | ||
137 | + "totalPage": 0 | ||
138 | + } | ||
139 | + "md5": "4ebf5e614102a54b0025164d794f8032", | ||
140 | + "message": "sortsize List." | ||
141 | + } | ||
142 | + | ||
143 | +``` | ||
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | +# 删除单个品类尺码接口 | ||
151 | + | ||
152 | +> 接口名: `/product/deleteSortSize` | ||
153 | + | ||
154 | +### 入参 | ||
155 | + | ||
156 | +------------------------- | ||
157 | +|属性名称|类型|例子|说明|是否必填| | ||
158 | +|--------|----|----|----|--------| | ||
159 | +|sortId|int|1|分类id|是| | ||
160 | +|sizeId|int|2|尺码id|是| | ||
161 | +--------------------- | ||
162 | + | ||
163 | +### 返回 | ||
164 | + | ||
165 | +``` json | ||
166 | +{ | ||
167 | + "code": 200, | ||
168 | + "md5": "dfc645ecb0c66c8d4771dd2a749047e8", | ||
169 | + "message": "sortsize delete success." | ||
170 | +} | ||
171 | + | ||
172 | +``` | ||
173 | + |
-
Please register or login to post a comment