Showing
1 changed file
with
86 additions
and
19 deletions
@@ -41,22 +41,89 @@ | @@ -41,22 +41,89 @@ | ||
41 | 41 | ||
42 | ``` json | 42 | ``` json |
43 | { | 43 | { |
44 | - code:200, | ||
45 | - message:"", | ||
46 | - data: { | ||
47 | - list: [{ | ||
48 | - categoryName: '', //品类名称 | ||
49 | - categoryAbbr: '', //品类缩写 | ||
50 | - firstCategory: '', //一级分类 | ||
51 | - secondCategory: '', //二级分类 | ||
52 | - thirdCategory: '', //三级分类 | ||
53 | - categorySort: '', //排序 | ||
54 | - categoryStatus: '',//状态, | ||
55 | - id: '', //品类ID | ||
56 | - }] | ||
57 | - page: '', //当前第几页 | ||
58 | - size: '', //每页多少条 | 44 | + "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 | + }, | ||
106 | + { | ||
107 | + "colorCode": "#ccccc", | ||
108 | + "colorName": "银色", | ||
109 | + "colorValue": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/02c286ddb8f5c6824a64a45ef6c8e2d18d.png", | ||
110 | + "id": 13 | ||
111 | + }, | ||
112 | + { | ||
113 | + "colorCode": "FFD83D", | ||
114 | + "colorName": "金色", | ||
115 | + "colorValue": "http://img01.static.yohobuy.com/adpic/2014/01/27/13/011443440339c06843acfd2f62fda68770.png", | ||
116 | + "id": 14 | ||
117 | + }, | ||
118 | + { | ||
119 | + "colorCode": "#fffff", | ||
120 | + "colorName": "彩色", | ||
121 | + "colorValue": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png", | ||
122 | + "id": 15 | ||
59 | } | 123 | } |
124 | + ], | ||
125 | + "md5": "a05b6b224e8d517720865f0060b484ad", | ||
126 | + "message": "success" | ||
60 | } | 127 | } |
61 | 128 | ||
62 | ``` | 129 | ``` |
@@ -68,7 +135,7 @@ | @@ -68,7 +135,7 @@ | ||
68 | 135 | ||
69 | # 更新产品颜色接口 | 136 | # 更新产品颜色接口 |
70 | 137 | ||
71 | -> 接口名: `/product/updateProductAttribute` | 138 | +> 接口名: `/productColor/updateProductColor` |
72 | 139 | ||
73 | ### 入参 | 140 | ### 入参 |
74 | 141 | ||
@@ -88,7 +155,7 @@ | @@ -88,7 +155,7 @@ | ||
88 | "code": 200, | 155 | "code": 200, |
89 | "data": [], | 156 | "data": [], |
90 | "md5": "d751713988987e9331980363e24189ce", | 157 | "md5": "d751713988987e9331980363e24189ce", |
91 | - "message": "Product Attribute update success." | 158 | + "message": " success." |
92 | } | 159 | } |
93 | 160 | ||
94 | ``` | 161 | ``` |
@@ -97,7 +164,7 @@ | @@ -97,7 +164,7 @@ | ||
97 | 164 | ||
98 | # 获取单个产品颜色接口 | 165 | # 获取单个产品颜色接口 |
99 | 166 | ||
100 | -> 接口名: `/product/queryProductColor` | 167 | +> 接口名: `/productColor/queryProductColor` |
101 | 168 | ||
102 | ### 入参 | 169 | ### 入参 |
103 | 170 | ||
@@ -114,7 +181,7 @@ | @@ -114,7 +181,7 @@ | ||
114 | "code": 200, | 181 | "code": 200, |
115 | "data": { | 182 | "data": { |
116 | "colorCode": "cc", | 183 | "colorCode": "cc", |
117 | - "colorName": "hongse", | 184 | + "colorName": "彩色", |
118 | "colorValue": "cc-value", | 185 | "colorValue": "cc-value", |
119 | "id": 16 | 186 | "id": 16 |
120 | }, | 187 | }, |
-
Please register or login to post a comment