Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop
Showing
2 changed files
with
175 additions
and
1 deletions
inferface-document/product-sort-attribute.md
0 → 100644
1 | +# 品类关联尺码属性管理接口服务定义 | ||
2 | +--------------------- | ||
3 | + | ||
4 | +# 添加品类关联尺码属性接口 | ||
5 | + | ||
6 | +> 接口名: `/sortAttribute/add/` | ||
7 | + | ||
8 | +### 入参 | ||
9 | + | ||
10 | +------------------------- | ||
11 | +|属性名称|类型|例子|说明|是否必填| | ||
12 | +|--------|----|----|----|--------| | ||
13 | +|sortId |int|1 |品类id |是 | | ||
14 | +|attributeId|int|2|尺码属性id|是| | ||
15 | +|orderBy|int|2|排序|否| | ||
16 | + | ||
17 | +--------------------- | ||
18 | + | ||
19 | +### 返回 | ||
20 | + | ||
21 | +``` json | ||
22 | +{ | ||
23 | + "code":200, | ||
24 | + "message":"success" | ||
25 | +} | ||
26 | + | ||
27 | +``` | ||
28 | + | ||
29 | +# 获取品类关联尺码属性列表 | ||
30 | + | ||
31 | +> 接口名: `sortAttribute/queryList/` | ||
32 | + | ||
33 | +### 入参 | ||
34 | + | ||
35 | +------------------------- | ||
36 | +|属性名称|类型|例子|说明|是否必填| | ||
37 | +|-------|----|----|----|-------| | ||
38 | +|sortId |int|1 |品类id |是 | | ||
39 | +|pageNumber|int|2|页码,默认1|是| | ||
40 | +|pageSize|int|20|记录数,默认10|是| | ||
41 | +-------------------------------- | ||
42 | + | ||
43 | +### 返回 | ||
44 | + | ||
45 | +``` json | ||
46 | +{ | ||
47 | + "code": 200, | ||
48 | + "data": { | ||
49 | + "content": [ | ||
50 | + { | ||
51 | + "attributeId": 26, | ||
52 | + "attributeName": "直径", | ||
53 | + "orderBy": 0, | ||
54 | + "sortId": 74, | ||
55 | + "sortName": "戒指" | ||
56 | + }, | ||
57 | + { | ||
58 | + "attributeId": 44, | ||
59 | + "attributeName": "周长", | ||
60 | + "orderBy": 0, | ||
61 | + "sortId": 74, | ||
62 | + "sortName": "戒指" | ||
63 | + }, | ||
64 | + { | ||
65 | + "attributeId": 45, | ||
66 | + "attributeName": "周长", | ||
67 | + "orderBy": 0, | ||
68 | + "sortId": 74, | ||
69 | + "sortName": "戒指" | ||
70 | + } | ||
71 | + ], | ||
72 | + "number": 1, | ||
73 | + "size": 30, | ||
74 | + "totalElements": 3, | ||
75 | + "totalPages": 1 | ||
76 | + }, | ||
77 | + "md5": "9d7cb51564aa667059932b0e4be237e9", | ||
78 | + "message": "success" | ||
79 | +} | ||
80 | + | ||
81 | +``` | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | +# 更新品类关联尺码属性接口 | ||
89 | + | ||
90 | +> 接口名: `/sortAttribute/update` | ||
91 | + | ||
92 | +### 入参 | ||
93 | + | ||
94 | +------------------------- | ||
95 | +|属性名称|类型|例子|说明|是否必填| | ||
96 | +|--------|----|----|----|--------| | ||
97 | +|sortId |int|1 |品类id |是 | | ||
98 | +|attributeId|int|2|尺码属性id|是| | ||
99 | +|preAttributeId |int|1 |修改前尺码属性id |是 | | ||
100 | +|orderBy|int|2|排序|否| | ||
101 | +--------------------- | ||
102 | + | ||
103 | +### 返回 | ||
104 | + | ||
105 | +``` json | ||
106 | +{ | ||
107 | + "code": 200, | ||
108 | + "data": [], | ||
109 | + "md5": "d751713988987e9331980363e24189ce", | ||
110 | + "message": " success." | ||
111 | +} | ||
112 | + | ||
113 | +``` | ||
114 | + | ||
115 | +# 删除品类关联尺码属性接口 | ||
116 | + | ||
117 | +> 接口名: `/sortAttribute/delete` | ||
118 | + | ||
119 | +### 入参 | ||
120 | + | ||
121 | +------------------------- | ||
122 | +|属性名称|类型|例子|说明|是否必填| | ||
123 | +|--------|----|----|----|--------| | ||
124 | +|sortId |int|1 |品类id |是 | | ||
125 | +|attributeId|int|2|尺码属性id|是| | ||
126 | + | ||
127 | +--------------------- | ||
128 | + | ||
129 | +### 返回 | ||
130 | + | ||
131 | +``` json | ||
132 | +{ | ||
133 | + "code": 200, | ||
134 | + "data": [], | ||
135 | + "md5": "d751713988987e9331980363e24189ce", | ||
136 | + "message": " success." | ||
137 | +} | ||
138 | + | ||
139 | +``` | ||
140 | + | ||
141 | +# 获取单个品类关联尺码属性接口 | ||
142 | + | ||
143 | +> 接口名: `/sortAttribute/queryBySortAttr` | ||
144 | + | ||
145 | +### 入参 | ||
146 | + | ||
147 | +------------------------- | ||
148 | +|属性名称|类型|例子|说明|是否必填| | ||
149 | +|--------|----|----|----|--------| | ||
150 | +|sortId |int|1 |品类id |是 | | ||
151 | +|attributeId|int|2|尺码属性id|是| | ||
152 | +--------------------- | ||
153 | + | ||
154 | +### 返回 | ||
155 | + | ||
156 | +``` json | ||
157 | +{ | ||
158 | + "code": 200, | ||
159 | + "data": { | ||
160 | + "attributeId": 26, | ||
161 | + "attributeName": "直径", | ||
162 | + "orderBy": 0, | ||
163 | + "sortId": 74, | ||
164 | + "sortName": "戒指" | ||
165 | + }, | ||
166 | + "md5": "354b1dbdc27b1d285dd2fc6743906f84", | ||
167 | + "message": "success" | ||
168 | +} | ||
169 | + | ||
170 | +``` | ||
171 | + |
@@ -151,6 +151,8 @@ | @@ -151,6 +151,8 @@ | ||
151 | |属性名称|类型|例子|说明|是否必填| | 151 | |属性名称|类型|例子|说明|是否必填| |
152 | |--------|----|----|----|--------| | 152 | |--------|----|----|----|--------| |
153 | |categoryId|int|1|目录ID|是 | 153 | |categoryId|int|1|目录ID|是 |
154 | +|page|int|1|当前第几页|否 | ||
155 | +|size|int|1|每页多少条|否 | ||
154 | --------------------- | 156 | --------------------- |
155 | 157 | ||
156 | ### 返回 | 158 | ### 返回 |
@@ -158,7 +160,8 @@ | @@ -158,7 +160,8 @@ | ||
158 | ``` json | 160 | ``` json |
159 | { | 161 | { |
160 | "code": 200, | 162 | "code": 200, |
161 | - "data": [ | 163 | + "data": |
164 | + "list":[ | ||
162 | { | 165 | { |
163 | "attributeId": 15, | 166 | "attributeId": 15, |
164 | "attributeName": "防风外套属性", | 167 | "attributeName": "防风外套属性", |
-
Please register or login to post a comment