Showing
1 changed file
with
187 additions
and
0 deletions
inferface-document/brandCooperation.md
0 → 100644
1 | +# 品牌合作模式管理 | ||
2 | +--------------------- | ||
3 | + | ||
4 | +## 新增修改品牌合作模式管理 | ||
5 | + | ||
6 | +> 接口名:`/brandCooperation/saveBrandCooperation` | ||
7 | + | ||
8 | +### 入参 | ||
9 | + | ||
10 | +------------------------- | ||
11 | +|属性名称|类型|例子|说明| | ||
12 | +|--------|----|----|----| | ||
13 | +|id|int|12|品牌合作模式主键id:修改时非空 | | ||
14 | +|cooperateTypeId|int|2| 合作模式id 0未设置 1 代销 2 经销 3 自主| | ||
15 | +|brandId|int|13|品牌id,新增时需要| | ||
16 | +|addUid|int|22|添加人id| | ||
17 | +|addUserName|string|李建|添加人名称| | ||
18 | +|updateUid|int|2323|修改人id| | ||
19 | +|updateUserName|String|李建|修改人名称| | ||
20 | +--------------------- | ||
21 | + | ||
22 | +### 返回 | ||
23 | + | ||
24 | +``` json | ||
25 | +新增请求样例: | ||
26 | +{ | ||
27 | + "brandId": 19, | ||
28 | +"cooperateTypeId":1, | ||
29 | +"addUid":234, | ||
30 | +"addUserName":"李建" | ||
31 | +} | ||
32 | +修改请求样例: | ||
33 | +{ | ||
34 | + "id": 19, | ||
35 | +"cooperateTypeId":2, | ||
36 | +"updateUid":234, | ||
37 | +"updateUserName":"李建" | ||
38 | +} | ||
39 | +正常返回: | ||
40 | +{ | ||
41 | + "code": 200, | ||
42 | + "data": [], | ||
43 | + "md5": "d751713988987e9331980363e24189ce", | ||
44 | + "message": "保存品牌合作模式信息成功" | ||
45 | +} | ||
46 | +异常返回: | ||
47 | +{ | ||
48 | + "code": 403, | ||
49 | + "data": [], | ||
50 | + "md5": "d751713988987e9331980363e24189ce", | ||
51 | + "message": "请求参数异常" | ||
52 | +} | ||
53 | + | ||
54 | +``` | ||
55 | +## 查询品牌合作模式管理 | ||
56 | +> 接口名:`/brandCooperation/queryBrandCooperationList` | ||
57 | + | ||
58 | +------------------------- | ||
59 | +|属性名称|类型|例子|说明| | ||
60 | +|--------|----|----|----| | ||
61 | +|page|int|2|第几页| | ||
62 | +|size|int|50|每页条数| | ||
63 | +|cooperateTypeId|int|2| 合作模式id 0未设置 1 代销 2 经销 3 自主| | ||
64 | +|brandName|string|nike|品牌名称 模糊查询| | ||
65 | +|setFlag|int|0|是否设置 0未设置 1已设置| | ||
66 | +--------------------- | ||
67 | + | ||
68 | +### 返回 | ||
69 | + | ||
70 | +``` json | ||
71 | +请求样例: | ||
72 | +{ | ||
73 | + "page": 1, | ||
74 | + "size": 10, | ||
75 | +"setFlag":1 | ||
76 | +} | ||
77 | +修改请求样例: | ||
78 | + | ||
79 | +正常返回: | ||
80 | +{ | ||
81 | + "code": 200, | ||
82 | + "data": { | ||
83 | + "list": [ | ||
84 | + { | ||
85 | + "addUid": 234, | ||
86 | + "addUserName": "李建", | ||
87 | + "brandId": 15, | ||
88 | + "brandName": "BORDERLINE", | ||
89 | + "cooperateTypeId": 2, | ||
90 | + "cooperateTypeName": "经销", | ||
91 | + "createTime": 1455763569, | ||
92 | + "delFlag": 0, | ||
93 | + "id": 17, | ||
94 | + "updateTime": 1455763569 | ||
95 | + }, | ||
96 | + { | ||
97 | + "addUid": 234, | ||
98 | + "addUserName": "李建", | ||
99 | + "brandId": 15, | ||
100 | + "brandName": "BORDERLINE", | ||
101 | + "cooperateTypeId": 2, | ||
102 | + "cooperateTypeName": "经销", | ||
103 | + "createTime": 1455763608, | ||
104 | + "delFlag": 0, | ||
105 | + "id": 18, | ||
106 | + "updateTime": 1455763608 | ||
107 | + }, | ||
108 | + { | ||
109 | + "addUid": 234, | ||
110 | + "addUserName": "李建", | ||
111 | + "brandId": 15, | ||
112 | + "brandName": "BORDERLINE", | ||
113 | + "cooperateTypeId": 2, | ||
114 | + "cooperateTypeName": "经销", | ||
115 | + "createTime": 1455764083, | ||
116 | + "delFlag": 0, | ||
117 | + "id": 19, | ||
118 | + "updateTime": 1455764083 | ||
119 | + }, | ||
120 | + { | ||
121 | + "addUid": 234, | ||
122 | + "addUserName": "李建", | ||
123 | + "brandId": 15, | ||
124 | + "brandName": "BORDERLINE", | ||
125 | + "cooperateTypeId": 2, | ||
126 | + "cooperateTypeName": "经销", | ||
127 | + "createTime": 1455764084, | ||
128 | + "delFlag": 0, | ||
129 | + "id": 20, | ||
130 | + "updateTime": 1455764084 | ||
131 | + } | ||
132 | + ], | ||
133 | + "page": 1, | ||
134 | + "size": 10, | ||
135 | + "total": 11, | ||
136 | + "totalPage": 2 | ||
137 | + }, | ||
138 | + "md5": "007961848bbafa4389f0b72e74efe362", | ||
139 | + "message": "品牌合作模式信息列表" | ||
140 | +} | ||
141 | +异常返回: | ||
142 | +{ | ||
143 | + "code": 405, | ||
144 | + "data": [], | ||
145 | + "md5": "d751713988987e9331980363e24189ce", | ||
146 | + "message": "查询品牌合作模式信息失败" | ||
147 | +} | ||
148 | + | ||
149 | +``` | ||
150 | +## 批量导入品牌合作模式管理 | ||
151 | + | ||
152 | +> 接口名:`/batch/import` | ||
153 | + | ||
154 | +### 入参 | ||
155 | + | ||
156 | +------------------------- | ||
157 | +|属性名称|类型|例子|说明| | ||
158 | +|--------|----|----|----| | ||
159 | +|file|文件|文件|xls文件 | | ||
160 | +|type|int|2| 上传业务类型 必传:brandCooperation| | ||
161 | +--------------------- | ||
162 | + | ||
163 | +### 返回 | ||
164 | + | ||
165 | +``` json | ||
166 | +请求样例: | ||
167 | +{ | ||
168 | + "type": brandCooperation | ||
169 | +} | ||
170 | + | ||
171 | +正常返回: | ||
172 | +{ | ||
173 | + "code": 200, | ||
174 | + "data": { | ||
175 | + "failFileReason": [ | ||
176 | + "第3行:[23.0]:品牌名称不存在" | ||
177 | + ] | ||
178 | + }, | ||
179 | + "message": "导入成功" | ||
180 | +} | ||
181 | +异常返回: | ||
182 | +{ | ||
183 | + "code": 500, | ||
184 | + "message": "第2行数据个数不匹配" | ||
185 | +} | ||
186 | + | ||
187 | +``` |
-
Please register or login to post a comment