add size-attribute file
Showing
1 changed file
with
172 additions
and
0 deletions
inferface-document/size-attribute.md
0 → 100644
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 | + |
-
Please register or login to post a comment