Showing
1 changed file
with
74 additions
and
96 deletions
1 | -# 产品颜色管理接口服务定义 | 1 | +# 品类关联尺码属性管理接口服务定义 |
2 | --------------------- | 2 | --------------------- |
3 | 3 | ||
4 | -# 添加颜色接口 | 4 | +# 添加品类关联尺码属性接口 |
5 | 5 | ||
6 | -> 接口名: `/productColor/addProductColor/` | 6 | +> 接口名: `/sortAttribute/add/` |
7 | 7 | ||
8 | ### 入参 | 8 | ### 入参 |
9 | 9 | ||
10 | ------------------------- | 10 | ------------------------- |
11 | |属性名称|类型|例子|说明|是否必填| | 11 | |属性名称|类型|例子|说明|是否必填| |
12 | |--------|----|----|----|--------| | 12 | |--------|----|----|----|--------| |
13 | -|colorName|string|nike|颜色名称|是| | ||
14 | -|colorCode|string|n|RGB code|是| | ||
15 | -|colorValue|string|图片URL|一级分类|是| | 13 | +|sortId |int|1 |品类id |是 | |
14 | +|attributeId|int|2|尺码属性id|是| | ||
15 | +|orderBy|int|2|排序|否| | ||
16 | 16 | ||
17 | --------------------- | 17 | --------------------- |
18 | 18 | ||
@@ -26,15 +26,18 @@ | @@ -26,15 +26,18 @@ | ||
26 | 26 | ||
27 | ``` | 27 | ``` |
28 | 28 | ||
29 | -# 获取颜色列表 | 29 | +# 获取品类关联尺码属性列表 |
30 | 30 | ||
31 | -> 接口名: `/productColor/queryProductColors` | 31 | +> 接口名: `sortAttribute/queryList/` |
32 | 32 | ||
33 | ### 入参 | 33 | ### 入参 |
34 | 34 | ||
35 | ------------------------- | 35 | ------------------------- |
36 | |属性名称|类型|例子|说明|是否必填| | 36 | |属性名称|类型|例子|说明|是否必填| |
37 | |-------|----|----|----|-------| | 37 | |-------|----|----|----|-------| |
38 | +|sortId |int|1 |品类id |是 | | ||
39 | +|pageNumber|int|2|页码,默认1|是| | ||
40 | +|pageSize|int|20|记录数,默认10|是| | ||
38 | -------------------------------- | 41 | -------------------------------- |
39 | 42 | ||
40 | ### 返回 | 43 | ### 返回 |
@@ -42,87 +45,36 @@ | @@ -42,87 +45,36 @@ | ||
42 | ``` json | 45 | ``` json |
43 | { | 46 | { |
44 | "code": 200, | 47 | "code": 200, |
45 | - "data": [ | ||
46 | - { | ||
47 | - "colorCode": "FFFFFF", | ||
48 | - "colorName": "白色", | ||
49 | - "colorValue": "", | ||
50 | - "id": 1 | ||
51 | - }, | ||
52 | - { | ||
53 | - "colorCode": "333333", | ||
54 | - "colorName": "黑色", | ||
55 | - "colorValue": "", | ||
56 | - "id": 2 | ||
57 | - }, | ||
58 | - { | ||
59 | - "colorCode": "b9b7af", | ||
60 | - "colorName": "灰色", | ||
61 | - "colorValue": "", | ||
62 | - "id": 3 | ||
63 | - }, | ||
64 | - { | ||
65 | - "colorCode": "8b5402", | ||
66 | - "colorName": "棕色", | ||
67 | - "colorValue": "", | ||
68 | - "id": 4 | ||
69 | - }, | ||
70 | - { | ||
71 | - "colorCode": "47ba17", | ||
72 | - "colorName": "绿色", | ||
73 | - "colorValue": "", | ||
74 | - "id": 6 | ||
75 | - }, | ||
76 | - { | ||
77 | - "colorCode": "0000fe", | ||
78 | - "colorName": "蓝色", | ||
79 | - "colorValue": "", | ||
80 | - "id": 7 | ||
81 | - }, | ||
82 | - { | ||
83 | - "colorCode": "710098", | ||
84 | - "colorName": "紫色", | ||
85 | - "colorValue": "", | ||
86 | - "id": 8 | ||
87 | - }, | ||
88 | - { | ||
89 | - "colorCode": "ffeb00", | ||
90 | - "colorName": "黄色", | ||
91 | - "colorValue": "", | ||
92 | - "id": 9 | ||
93 | - }, | ||
94 | - { | ||
95 | - "colorCode": "ee0000", | ||
96 | - "colorName": "红色", | ||
97 | - "colorValue": "", | ||
98 | - "id": 11 | ||
99 | - }, | ||
100 | - { | ||
101 | - "colorCode": "ff5c01", | ||
102 | - "colorName": "橙色", | ||
103 | - "colorValue": "", | ||
104 | - "id": 12 | ||
105 | - }, | 48 | + "data": { |
49 | + "content": [ | ||
106 | { | 50 | { |
107 | - "colorCode": "#ccccc", | ||
108 | - "colorName": "银色", | ||
109 | - "colorValue": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/02c286ddb8f5c6824a64a45ef6c8e2d18d.png", | ||
110 | - "id": 13 | 51 | + "attributeId": 26, |
52 | + "attributeName": "直径", | ||
53 | + "orderBy": 0, | ||
54 | + "sortId": 74, | ||
55 | + "sortName": "戒指" | ||
111 | }, | 56 | }, |
112 | { | 57 | { |
113 | - "colorCode": "FFD83D", | ||
114 | - "colorName": "金色", | ||
115 | - "colorValue": "http://img01.static.yohobuy.com/adpic/2014/01/27/13/011443440339c06843acfd2f62fda68770.png", | ||
116 | - "id": 14 | 58 | + "attributeId": 44, |
59 | + "attributeName": "周长", | ||
60 | + "orderBy": 0, | ||
61 | + "sortId": 74, | ||
62 | + "sortName": "戒指" | ||
117 | }, | 63 | }, |
118 | { | 64 | { |
119 | - "colorCode": "#fffff", | ||
120 | - "colorName": "彩色", | ||
121 | - "colorValue": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png", | ||
122 | - "id": 15 | 65 | + "attributeId": 45, |
66 | + "attributeName": "周长", | ||
67 | + "orderBy": 0, | ||
68 | + "sortId": 74, | ||
69 | + "sortName": "戒指" | ||
123 | } | 70 | } |
124 | ], | 71 | ], |
125 | - "md5": "a05b6b224e8d517720865f0060b484ad", | 72 | + "number": 1, |
73 | + "size": 30, | ||
74 | + "totalElements": 3, | ||
75 | + "totalPages": 1 | ||
76 | + }, | ||
77 | + "md5": "9d7cb51564aa667059932b0e4be237e9", | ||
126 | "message": "success" | 78 | "message": "success" |
127 | } | 79 | } |
128 | 80 | ||
@@ -133,19 +85,19 @@ | @@ -133,19 +85,19 @@ | ||
133 | 85 | ||
134 | 86 | ||
135 | 87 | ||
136 | -# 更新产品颜色接口 | 88 | +# 更新品类关联尺码属性接口 |
137 | 89 | ||
138 | -> 接口名: `/productColor/updateProductColor` | 90 | +> 接口名: `/sortAttribute/update` |
139 | 91 | ||
140 | ### 入参 | 92 | ### 入参 |
141 | 93 | ||
142 | ------------------------- | 94 | ------------------------- |
143 | |属性名称|类型|例子|说明|是否必填| | 95 | |属性名称|类型|例子|说明|是否必填| |
144 | |--------|----|----|----|--------| | 96 | |--------|----|----|----|--------| |
145 | -|id |int|1 |id |是 | | ||
146 | -|colorName|string|nike|颜色名称|是| | ||
147 | -|colorCode|string|n|RGB code|是| | ||
148 | -|colorValue|string|图片URL|一级分类|是| | 97 | +|sortId |int|1 |品类id |是 | |
98 | +|attributeId|int|2|尺码属性id|是| | ||
99 | +|preAttributeId |int|1 |修改前尺码属性id |是 | | ||
100 | +|orderBy|int|2|排序|否| | ||
149 | --------------------- | 101 | --------------------- |
150 | 102 | ||
151 | ### 返回 | 103 | ### 返回 |
@@ -160,18 +112,43 @@ | @@ -160,18 +112,43 @@ | ||
160 | 112 | ||
161 | ``` | 113 | ``` |
162 | 114 | ||
115 | +# 删除品类关联尺码属性接口 | ||
116 | + | ||
117 | +> 接口名: `/sortAttribute/delete` | ||
118 | + | ||
119 | +### 入参 | ||
163 | 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 | +``` | ||
164 | 140 | ||
165 | -# 获取单个产品颜色接口 | 141 | +# 获取单个品类关联尺码属性接口 |
166 | 142 | ||
167 | -> 接口名: `/productColor/queryProductColor` | 143 | +> 接口名: `/sortAttribute/queryBySortAttr` |
168 | 144 | ||
169 | ### 入参 | 145 | ### 入参 |
170 | 146 | ||
171 | ------------------------- | 147 | ------------------------- |
172 | |属性名称|类型|例子|说明|是否必填| | 148 | |属性名称|类型|例子|说明|是否必填| |
173 | |--------|----|----|----|--------| | 149 | |--------|----|----|----|--------| |
174 | -|param|int|1|颜色ID|是 | 150 | +|sortId |int|1 |品类id |是 | |
151 | +|attributeId|int|2|尺码属性id|是| | ||
175 | --------------------- | 152 | --------------------- |
176 | 153 | ||
177 | ### 返回 | 154 | ### 返回 |
@@ -180,12 +157,13 @@ | @@ -180,12 +157,13 @@ | ||
180 | { | 157 | { |
181 | "code": 200, | 158 | "code": 200, |
182 | "data": { | 159 | "data": { |
183 | - "colorCode": "cc", | ||
184 | - "colorName": "彩色", | ||
185 | - "colorValue": "cc-value", | ||
186 | - "id": 16 | 160 | + "attributeId": 26, |
161 | + "attributeName": "直径", | ||
162 | + "orderBy": 0, | ||
163 | + "sortId": 74, | ||
164 | + "sortName": "戒指" | ||
187 | }, | 165 | }, |
188 | - "md5": "d08f272cd425a5a89528299e5ab9ebdf", | 166 | + "md5": "354b1dbdc27b1d285dd2fc6743906f84", |
189 | "message": "success" | 167 | "message": "success" |
190 | } | 168 | } |
191 | 169 |
-
Please register or login to post a comment