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