Showing
1 changed file
with
169 additions
and
0 deletions
inferface-document/brandSeries.md
0 → 100644
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 | + | ||
141 | +# 根据名称模糊查询获取一组尺码属性接口 | ||
142 | + | ||
143 | +> 接口名: `/product/querySizeAttributesByName` | ||
144 | + | ||
145 | +### 入参 | ||
146 | + | ||
147 | +------------------------- | ||
148 | +|属性名称|类型|例子|说明|是否必填| | ||
149 | +|--------|----|----|----|--------| | ||
150 | +|idName |String |长 |属性名称中包含的字词 |是| | ||
151 | +--------------------- | ||
152 | + | ||
153 | +### 返回 | ||
154 | + | ||
155 | +``` json | ||
156 | +{ | ||
157 | + "code": 200, | ||
158 | + "data": [ | ||
159 | + { | ||
160 | + "text": "衣长", | ||
161 | + "id": 60 | ||
162 | + | ||
163 | + } | ||
164 | + ], | ||
165 | + "md5": "dfc645ecb0c66c8d4771dd2a749047e8", | ||
166 | + "message": "Product size get success." | ||
167 | +} | ||
168 | + | ||
169 | +``` |
-
Please register or login to post a comment