后台初始化
后台初始化信息
参数
- array
后台初始化信息
- 数组成员object
- namestringstring
名称
- logostringstring
Logo
- domainurlstringstring
背景图片地址
- versionstringstring
版本号
Example 1
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": {
5 "name": "SheepAdmin后台管理系统",
6 "logo": "/storage/default/20211110/ec77b29d7a58e8e9807ca23b272d1a9d.png",
7 "domainurl": "https://sa.test.7wpp.com",
8 "version": "1.1.0"
9 }
10}
当前账户信息
后台初始化信息
参数
- array
当前账户信息
- 数组成员object
- idint
ID
- role_idint
用户组ID
- accountstringstring
账号
- nicknamestringstring
昵称
- mobilestringstring
手机号
- avatarstringstring
头像
- emailstringstring
邮箱
- login_failstringstring
登录失败
- login_timestringstring
登录时间
- login_ipstringstring
登录ip地址
- statusstringstring
状态
- create_timestringstring
创建时间
- update_timestringstring
更新时间
- roleobject
用户组
- 子属性
- role.idint
ID
- role.parent_idint
所属上级ID
- role.namestringstring
名称
- role.codestringstring
code
- role.descriptionstringstring
描述
- role.rulesobject
权限
- status_textstringstring
状态说明
- is_superbooleanboolean
是否超级管理员
Example 1
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": {
5 "id": 10,
6 "role_id": 1,
7 "account": "admin",
8 "nickname": "昵称",
9 "mobile": "13131313131",
10 "avatar": "/storage/default/20211110/ec77b29d7a58e8e9807ca23b272d1a9d.png",
11 "email": "12345677@qq.com",
12 "login_fail": 0,
13 "login_time": 1638518735,
14 "login_ip": "171.15.60.53",
15 "status": "normal",
16 "create_time": null,
17 "update_time": "2021-12-03 16:05:35",
18 "role": {
19 "id": 1,
20 "parent_id": 0,
21 "name": "超级管理组",
22 "code": "root",
23 "description": null,
24 "rules": [
25 "*"
26 ],
27 "status": "normal",
28 "create_time": null,
29 "update_time": "2021-07-08 17:13:32",
30 "status_text": "正常"
31 },
32 "status_text": "正常",
33 "is_super": true
34 }
35}
更新个人信息
This can only be done by the logged in user.
请求 BODY
- accountstringstring
账号
- avatarstringstring
头像图片地址
- create_timestringstring
创建时间
- emailstringstring
邮箱地址
- idint
ID
- is_superbooleanboolean
超级管理员
- login_failint
login_fail
- login_ipstringstring
登录ip地址
- login_timeint
登录时间
- mobilestringstring
手机号
- nicknamestringstring
昵称
- roleobject
role
- 子属性
- role.codeintint32
code
- role.create_timeint
创建时间
- role.descriptionstringstring
描述
- role.idint
ID
- role.namestringstring
名称
- role.parent_idint
parent_id
- role.rulesarray
规则
- 数组成员string
- string
规则
- role.statusstringstring
状态
- role.status_textstringstring
状态说明
- role.update_timestringstring
更新时间
- role_idint
角色组id
- statusstringstring
状态
- status_textstringstring
状态说明
- update_timestringstring
更新时间
参数
- array
当前账户信息
- 数组成员object
- idint
ID
- role_idint
用户组ID
- accountstringstring
账号
- nicknamestringstring
昵称
- mobilestringstring
手机号
- avatarstringstring
头像
- emailstringstring
邮箱
- login_failstringstring
登录失败
- login_timestringstring
登录时间
- login_ipstringstring
登录ip地址
- statusstringstring
状态
- create_timestringstring
创建时间
- update_timestringstring
更新时间
- roleobject
用户组
- 子属性
- role.idint
ID
- role.parent_idint
所属上级ID
- role.namestringstring
名称
- role.codestringstring
code
- role.descriptionstringstring
描述
- role.rulesobject
权限
- status_textstringstring
状态说明
- is_superbooleanboolean
是否超级管理员
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": {
5 "id": 10,
6 "role_id": 1,
7 "account": "admin",
8 "nickname": "昵称",
9 "mobile": "13131313131",
10 "avatar": "/storage/default/20211110/ec77b29d7a58e8e9807ca23b272d1a9d.png",
11 "email": "12345678@qq.com",
12 "login_fail": 0,
13 "login_time": 1638518735,
14 "login_ip": "171.15.60.53",
15 "status": "normal",
16 "create_time": null,
17 "update_time": "2021-12-03 16:05:35",
18 "role": {
19 "id": 1,
20 "parent_id": 0,
21 "name": "超级管理组",
22 "code": "root",
23 "description": null,
24 "rules": [
25 "*"
26 ],
27 "status": "normal",
28 "create_time": null,
29 "update_time": "2021-07-08 17:13:32",
30 "status_text": "正常"
31 },
32 "status_text": "正常",
33 "is_super": true
34 }
35}
权限规则
权限规则信息
参数
- array
权限规则信息
- 数组成员object
- menuarray
菜单
- 数组成员object
- menu.idint
ID
- menu.parent_idint
parent_id
- menu.namestringstring
名称
- menu.titlestringstring
标题
- menu.typestringstring
类型
- menu.iconstringstring
icon
- menu.paramsstringstring
params
- menu.weighint
权重
- menu.statusstringstring
状态
- menu.childrenarray
子类
- 数组成员object
- children.idint
ID
- children.parent_idint
parent_id
- children.namestringstring
名称
- children.titlestringstring
标题
- children.typestringstring
类型
- children.iconstringstring
icon
- children.paramsstringstring
params
- children.weighint
权重
- children.statusstringstring
状态
- children.type_textstringstring
type_text
- children.status_textstringstring
status_text
Example 1
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": {
5 "menu": [
6 {
7 "id": 2,
8 "parent_id": 0,
9 "name": "admin.config",
10 "title": "系统设置",
11 "type": "menu",
12 "icon": "sa-dashboard",
13 "params": "",
14 "weigh": 2,
15 "status": "normal",
16 "children": [
17 {
18 "id": 217,
19 "parent_id": 2,
20 "name": "chat.admin.config",
21 "title": "客服配置",
22 "type": "page",
23 "icon": "sa-Chat-01",
24 "params": "",
25 "weigh": 8,
26 "status": "normal",
27 "type_text": "页面",
28 "status_text": "正常"
29 },
30 {
31 "id": 184,
32 "parent_id": 2,
33 "name": "admin.config.basic",
34 "title": "基础配置",
35 "type": "page",
36 "icon": "sa-config-basic",
37 "params": "",
38 "weigh": 7,
39 "status": "normal",
40 "type_text": "页面",
41 "status_text": "正常"
42 },
43 {
44 "id": 210,
45 "parent_id": 2,
46 "name": "wechat.admin.config",
47 "title": "微信配置",
48 "type": "page",
49 "icon": "sa-config-wechat",
50 "params": "",
51 "weigh": 6,
52 "status": "normal",
53 "type_text": "页面",
54 "status_text": "正常"
55 },
56 {
57 "id": 40,
58 "parent_id": 2,
59 "name": "admin.config.filesystem",
60 "title": "附件配置",
61 "type": "page",
62 "icon": "sa-config-filesystem",
63 "params": "",
64 "weigh": 5,
65 "status": "normal",
66 "type_text": "页面",
67 "status_text": "正常"
68 },
69 {
70 "id": 39,
71 "parent_id": 2,
72 "name": "admin.config.easysms",
73 "title": "短信配置",
74 "type": "page",
75 "icon": "sa-config-easysms",
76 "params": "",
77 "weigh": 4,
78 "status": "normal",
79 "type_text": "页面",
80 "status_text": "正常"
81 }
82 ],
83 "type_text": "菜单",
84 "status_text": "正常"
85 },
86 {
87 "id": 3,
88 "parent_id": 0,
89 "name": "admin.auth",
90 "title": "权限设置",
91 "type": "menu",
92 "icon": "sa-auth",
93 "params": "",
94 "weigh": 1,
95 "status": "normal",
96 "children": [
97 {
98 "id": 80,
99 "parent_id": 3,
100 "name": "admin.auth.role",
101 "title": "角色组",
102 "type": "page",
103 "icon": "sa-auth-role",
104 "params": "",
105 "weigh": 11,
106 "status": "normal",
107 "type_text": "页面",
108 "status_text": "正常"
109 },
110 {
111 "id": 6,
112 "parent_id": 3,
113 "name": "admin.auth.access",
114 "title": "菜单权限",
115 "type": "page",
116 "icon": "sa-auth-access",
117 "params": "",
118 "weigh": 10,
119 "status": "normal",
120 "type_text": "页面",
121 "status_text": "正常"
122 },
123 {
124 "id": 162,
125 "parent_id": 3,
126 "name": "admin.auth.admin",
127 "title": "管理员",
128 "type": "page",
129 "icon": "sa-auth-admin",
130 "params": "",
131 "weigh": 1,
132 "status": "normal",
133 "type_text": "页面",
134 "status_text": "正常"
135 }
136 ],
137 "type_text": "菜单",
138 "status_text": "正常"
139 },
140 {
141 "id": 194,
142 "parent_id": 0,
143 "name": "admin.dashboard",
144 "title": "控制台",
145 "type": "menu",
146 "icon": "sa-dashboard",
147 "params": "",
148 "weigh": 1,
149 "status": "normal",
150 "type_text": "菜单",
151 "status_text": "正常"
152 },
153 {
154 "id": 228,
155 "parent_id": 0,
156 "name": "wechat.admin.reply",
157 "title": "自动回复",
158 "type": "page",
159 "icon": "sa-wechat-reply",
160 "params": "",
161 "weigh": 1,
162 "status": "normal",
163 "type_text": "页面",
164 "status_text": "正常"
165 },
166 {
167 "id": 271,
168 "parent_id": 0,
169 "name": "admin.user",
170 "title": "用户管理",
171 "type": "menu",
172 "icon": "",
173 "params": "",
174 "weigh": 0,
175 "status": "normal",
176 "children": [
177 {
178 "id": 272,
179 "parent_id": 271,
180 "name": "admin.user.user",
181 "title": "用户管理",
182 "type": "page",
183 "icon": "",
184 "params": "",
185 "weigh": 0,
186 "status": "normal",
187 "type_text": "页面",
188 "status_text": "正常"
189 }
190 ],
191 "type_text": "菜单",
192 "status_text": "正常"
193 },
194 {
195 "id": 16,
196 "parent_id": 0,
197 "name": "admin.fileManager",
198 "title": "文件管理",
199 "type": "page",
200 "icon": "sa-filemanager",
201 "params": "",
202 "weigh": 0,
203 "status": "normal",
204 "type_text": "页面",
205 "status_text": "正常"
206 },
207 {
208 "id": 192,
209 "parent_id": 0,
210 "name": "official.admin",
211 "title": "官网管理",
212 "type": "menu",
213 "icon": "sa-official",
214 "params": "",
215 "weigh": 0,
216 "status": "normal",
217 "children": [
218 {
219 "id": 172,
220 "parent_id": 192,
221 "name": "official.admin.channel",
222 "title": "导航管理",
223 "type": "page",
224 "icon": "sa-official-channel",
225 "params": "",
226 "weigh": 1,
227 "status": "normal",
228 "type_text": "页面",
229 "status_text": "正常"
230 },
231 {
232 "id": 178,
233 "parent_id": 192,
234 "name": "official.admin.archive",
235 "title": "内容管理",
236 "type": "page",
237 "icon": "sa-official-archive",
238 "params": "",
239 "weigh": 1,
240 "status": "normal",
241 "type_text": "页面",
242 "status_text": "正常"
243 },
244 {
245 "id": 196,
246 "parent_id": 192,
247 "name": "official.admin.block",
248 "title": "广告区块",
249 "type": "page",
250 "icon": "sa-official-block",
251 "params": "",
252 "weigh": 0,
253 "status": "normal",
254 "type_text": "页面",
255 "status_text": "正常"
256 }
257 ],
258 "type_text": "菜单",
259 "status_text": "正常"
260 },
261 {
262 "id": 220,
263 "parent_id": 0,
264 "name": "wechat.admin",
265 "title": "微信管理",
266 "type": "menu",
267 "icon": "sa-wechat",
268 "params": "",
269 "weigh": 0,
270 "status": "normal",
271 "children": [
272 {
273 "id": 222,
274 "parent_id": 220,
275 "name": "wechat.admin.fans",
276 "title": "粉丝管理",
277 "type": "page",
278 "icon": "sa-wechat-fans",
279 "params": "",
280 "weigh": 1,
281 "status": "normal",
282 "type_text": "页面",
283 "status_text": "正常"
284 },
285 {
286 "id": 221,
287 "parent_id": 220,
288 "name": "wechat.admin.menu",
289 "title": "自定义菜单",
290 "type": "page",
291 "icon": "icon-icon-dept",
292 "params": "",
293 "weigh": 0,
294 "status": "normal",
295 "type_text": "页面",
296 "status_text": "正常"
297 },
298 {
299 "id": 234,
300 "parent_id": 220,
301 "name": "wechat.admin.material",
302 "title": "素材管理",
303 "type": "page",
304 "icon": "sa-wechat-material",
305 "params": "",
306 "weigh": 0,
307 "status": "normal",
308 "type_text": "页面",
309 "status_text": "正常"
310 }
311 ],
312 "type_text": "菜单",
313 "status_text": "正常"
314 },
315 {
316 "id": 243,
317 "parent_id": 0,
318 "name": "chat.admin",
319 "title": "客服管理",
320 "type": "menu",
321 "icon": "sa-Chat-01",
322 "params": "",
323 "weigh": 0,
324 "status": "normal",
325 "children": [
326 {
327 "id": 244,
328 "parent_id": 243,
329 "name": "chat.admin.commonWord",
330 "title": "常用语",
331 "type": "page",
332 "icon": "sa-auth-admin",
333 "params": "",
334 "weigh": 0,
335 "status": "normal",
336 "type_text": "页面",
337 "status_text": "正常"
338 },
339 {
340 "id": 246,
341 "parent_id": 243,
342 "name": "chat.admin.question",
343 "title": "常见问题",
344 "type": "page",
345 "icon": "sa-config-easysms",
346 "params": "",
347 "weigh": 0,
348 "status": "normal",
349 "type_text": "页面",
350 "status_text": "正常"
351 },
352 {
353 "id": 247,
354 "parent_id": 243,
355 "name": "chat.admin.customerService",
356 "title": "客服列表",
357 "type": "page",
358 "icon": "sa-biaoqing",
359 "params": "",
360 "weigh": 0,
361 "status": "normal",
362 "type_text": "页面",
363 "status_text": "正常"
364 }
365 ],
366 "type_text": "菜单",
367 "status_text": "正常"
368 }
369 ],
370 "page": [
371 "wechat.admin.reply",
372 "admin.fileManager",
373 "chat.admin.config",
374 "admin.config.basic",
375 "wechat.admin.config",
376 "admin.config.filesystem",
377 "admin.config.easysms",
378 "admin.auth.role",
379 "admin.auth.access",
380 "admin.auth.admin",
381 "admin.user.user",
382 "official.admin.channel",
383 "official.admin.archive",
384 "official.admin.block",
385 "wechat.admin.fans",
386 "wechat.admin.menu",
387 "wechat.admin.material",
388 "chat.admin.commonWord",
389 "chat.admin.question",
390 "chat.admin.customerService"
391 ],
392 "api": [
393 "wechat.admin.reply",
394 "admin.fileManager",
395 "chat.admin.config",
396 "admin.config.basic",
397 "wechat.admin.config",
398 "admin.config.filesystem",
399 "admin.config.easysms",
400 "admin.auth.role",
401 "admin.auth.access",
402 "admin.auth.admin",
403 "admin.user.user",
404 "official.admin.channel",
405 "official.admin.archive",
406 "official.admin.block",
407 "wechat.admin.fans",
408 "wechat.admin.menu",
409 "wechat.admin.material",
410 "chat.admin.commonWord",
411 "chat.admin.question",
412 "chat.admin.customerService",
413 "chat.admin.config.application",
414 "chat.admin.config.basic",
415 "chat.admin.config.system",
416 "admin.config.basic.site",
417 "admin.config.basic.login",
418 "wechat.admin.config.openPlatform",
419 "wechat.admin.config.officialAccount",
420 "wechat.admin.config.miniProgram",
421 "admin.auth.role.detail",
422 "admin.auth.role.add",
423 "admin.auth.role.edit",
424 "admin.auth.role.list",
425 "admin.auth.role.delete",
426 "admin.auth.access.add",
427 "admin.auth.access.list",
428 "admin.auth.access.edit",
429 "admin.auth.access.delete",
430 "admin.auth.access.detail",
431 "admin.auth.admin.list",
432 "admin.auth.admin.detail",
433 "admin.auth.admin.add",
434 "admin.auth.admin.edit",
435 "admin.auth.admin.delete",
436 "wechat.admin.reply.list",
437 "wechat.admin.reply.detail",
438 "wechat.admin.reply.add",
439 "wechat.admin.reply.edit",
440 "wechat.admin.reply.delete",
441 "official.admin.block.list",
442 "official.admin.block.detail",
443 "official.admin.block.add",
444 "official.admin.block.edit",
445 "official.admin.block.delete",
446 "wechat.admin.fans.sync",
447 "wechat.admin.fans.list",
448 "wechat.admin.fans.detail",
449 "wechat.admin.fans.add",
450 "wechat.admin.fans.edit",
451 "wechat.admin.fans.delete",
452 "wechat.admin.menu.detail",
453 "wechat.admin.menu.add",
454 "wechat.admin.menu.delete",
455 "wechat.admin.menu.copy",
456 "wechat.admin.menu.edit",
457 "wechat.admin.menu.publish",
458 "wechat.admin.menu.list",
459 "wechat.admin.material.list",
460 "wechat.admin.material.detail",
461 "wechat.admin.material.add",
462 "wechat.admin.material.edit",
463 "wechat.admin.material.delete",
464 "chat.admin.commonWord.list",
465 "chat.admin.commonWord.detail",
466 "chat.admin.commonWord.add",
467 "chat.admin.commonWord.edit",
468 "chat.admin.commonWord.delete",
469 "chat.admin.question.edit",
470 "chat.admin.question.delete",
471 "chat.admin.question.list",
472 "chat.admin.question.detail",
473 "chat.admin.question.add",
474 "chat.admin.customerService.list",
475 "chat.admin.customerService.detail",
476 "chat.admin.customerService.add",
477 "chat.admin.customerService.edit",
478 "chat.admin.customerService.delete"
479 ]
480 }
481}
角色组选择
角色组选择
参数
- errorstringstring
状态码
- msgstringstring
提醒
- dataarray
返回数据
- 数组成员object
- data.childernarray
- 数组成员object
- childern.idint
ID
- childern.namestringstring
名称
- childern.statusstringstring
状态
- childern.status_textstringstring
状态说明
- data.idint
ID
- data.namestringstring
名称
- data.statusstringstring
状态
- data.status_textstringstring
状态说明
Example 1
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": [
5 {
6 "id": 1,
7 "name": "超级管理组",
8 "status": "normal",
9 "children": [
10 {
11 "id": 2,
12 "name": "管理组",
13 "status": "normal",
14 "children": [
15 {
16 "id": 38,
17 "name": "阿萨德",
18 "status": "normal",
19 "children": [
20 {
21 "id": 53,
22 "name": "rrrrr",
23 "status": "normal",
24 "status_text": "正常"
25 }
26 ],
27 "status_text": "正常"
28 },
29 {
30 "id": 41,
31 "name": "dsgfdgfdg",
32 "status": "normal",
33 "status_text": "正常"
34 },
35 {
36 "id": 47,
37 "name": "哈哈啊",
38 "status": "normal",
39 "status_text": "正常"
40 },
41 {
42 "id": 50,
43 "name": "asdlasd",
44 "status": "normal",
45 "status_text": "正常"
46 }
47 ],
48 "status_text": "正常"
49 },
50 {
51 "id": 51,
52 "name": "技术部",
53 "status": "normal",
54 "children": [
55 {
56 "id": 52,
57 "name": "客服",
58 "status": "normal",
59 "status_text": "正常"
60 }
61 ],
62 "status_text": "正常"
63 }
64 ],
65 "status_text": "正常"
66 },
67 {
68 "id": 46,
69 "name": "超级管理组2",
70 "status": "normal",
71 "status_text": "正常"
72 },
73 {
74 "id": 48,
75 "name": "测试管理组3",
76 "status": "normal",
77 "children": [
78 {
79 "id": 49,
80 "name": "测试管理组3-1",
81 "status": "normal",
82 "status_text": "正常"
83 }
84 ],
85 "status_text": "正常"
86 }
87 ]
88}
添加管理员
请求 BODY
- accountstringstring
账号
- avatarstringstring
头像地址
- emailstringstring
邮箱地址
- mobilestringstring
手机号
- nicknamestringstring
昵称
- passwordstringstring
密码
- role_idstringstring
角色组ID
- statusstringstring
状态
参数
- errorintint32
- msgstringstring
- datastringstring
Example 1
请求示例
成功示例
1{
2 "error": 3,
3 "msg": "string",
4 "data": "string"
5}
登录
请求 BODY
- accountstringstring
账号
- passwordstringstring
密码
参数
- errorintint32
- msgstringstring
- datastringstring
Example 1
请求示例
成功示例
1{
2 "error": 3,
3 "msg": "string",
4 "data": "string"
5}
退出登录
后台初始化信息
参数
- array
后台初始化信息
- 数组成员object
- errorstringstring
状态码
- datastringstring
返回数据
- msgstringstring
信息
Example 1
成功示例
1{
2 "error": 1,
3 "data": null,
4 "msg": "注销成功"
5}
文件管理
文件管理
QUERY
- pageint必填
页码
- list_rowsint必填
当前列表显示数量
- searchobject必填
搜索条件
参数
- array
文件管理信息
- 数组成员object
- current_pagestringstring
当前页
- per_pagestringstring
每页条数
- totalstringstring
总共条数
- dataarray
- 数组成员object
- data.admin_idint
用户ID
- data.create_timestringstring
创建时间
- data.extensionstringstring
拓展名
- data.file_md5stringstring
md5
- data.filenamestringstring
文件名称
- data.filesizeint
文件大小
- data.groupstringstring
分组
- data.idint
ID
- data.image_heightint
图片高度
- data.image_widthint
图片宽度
- data.mimetypestringstring
上传文件类型
- data.storagestringstring
存储
- data.update_timestringstring
更新时间
- data.urlstringstring
地址
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": {
5 "total": 2,
6 "per_page": 24,
7 "current_page": 1,
8 "last_page": 1,
9 "data": [
10 {
11 "id": 324,
12 "admin_id": 10,
13 "url": "/storage/smallnews/20211203/283df5ba640410adfe3a88c70fd0f7d6.jpg",
14 "image_width": 4168,
15 "image_height": 4168,
16 "group": "smallnews",
17 "extension": "jpg",
18 "filename": "头像_画板 1.jpg",
19 "storage": "public",
20 "filesize": 411128,
21 "mimetype": "image/jpeg",
22 "file_md5": "283df5ba640410adfe3a88c70fd0f7d6",
23 "create_time": "2021-12-03 15:58:52",
24 "update_time": "2021-12-03 15:58:52"
25 },
26 {
27 "id": 209,
28 "admin_id": 10,
29 "url": "/storage/smallnews/20211028/53bec8b15b988fdd50615489ad94b2e8.png",
30 "image_width": 396,
31 "image_height": 48,
32 "group": "smallnews",
33 "extension": "png",
34 "filename": "name.png",
35 "storage": "public",
36 "filesize": 5024,
37 "mimetype": "image/png",
38 "file_md5": "53bec8b15b988fdd50615489ad94b2e8",
39 "create_time": "2021-10-28 15:27:24",
40 "update_time": "2021-10-28 15:27:24"
41 }
42 ]
43 }
44}
附件上传
QUERY
- groupstring必填string
分组
请求 BODY
- filefilebinary
二进制文件
参数
- errorintint32
状态码
- msgstringstring
提醒
- dataobject
返回数据
- 子属性
- data.fullurlstringstring
完整地址
- data.pathstringstring
地址
Example 1
请求示例
成功示例
1{
2 "data": {
3 "fullurl": "https://sa.test.7wpp.com/storage/default/20211202/637339bf3855a1ee93373870effbb675.jpg",
4 "path": "/storage/default/20211202/637339bf3855a1ee93373870effbb675.jpg"
5 },
6 "error": 0,
7 "msg": "上传成功"
8}
文件类型
后台初始化信息
参数
- array
后台初始化信息
- 数组成员object
- file_typearray
文件类型
- 数组成员object
- file_type.namestringstring
名称
- file_type.valuestringstring
类型
Example 1
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": {
5 "name": "SheepAdmin后台管理系统",
6 "logo": "/storage/default/20211110/ec77b29d7a58e8e9807ca23b272d1a9d.png",
7 "domainurl": "https://sa.test.7wpp.com",
8 "version": "1.1.0"
9 }
10}
文件分组
后台初始化信息
参数
- array
后台初始化信息
- 数组成员array
分组
分组信息
- 数组成员object
- create_timestringstring
创建时间
- groupstringstring
分组
- idint
ID
- namestringstring
名称
- update_timestringstring
更新时间
- weighstringstring
权重
Example 1
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": [
5 {
6 "id": 1,
7 "name": "商城分组",
8 "group": "smallnews",
9 "weigh": 50,
10 "create_time": "2021-07-15 18:49:22",
11 "update_time": "2021-07-20 15:08:40"
12 },
13 {
14 "id": 35,
15 "name": "蓝",
16 "group": "lanergg",
17 "weigh": 50,
18 "create_time": "2021-10-19 14:40:39",
19 "update_time": "2021-10-19 14:40:39"
20 },
21 {
22 "id": 37,
23 "name": "default",
24 "group": "default",
25 "weigh": 50,
26 "create_time": null,
27 "update_time": null
28 },
29 {
30 "id": 38,
31 "name": "云",
32 "group": "yun",
33 "weigh": 50,
34 "create_time": "2021-10-20 10:41:12",
35 "update_time": "2021-10-20 10:41:12"
36 },
37 {
38 "id": 40,
39 "name": "chat",
40 "group": "chat",
41 "weigh": 50,
42 "create_time": null,
43 "update_time": null
44 },
45 {
46 "id": 44,
47 "name": "官网图集",
48 "group": "a",
49 "weigh": 50,
50 "create_time": "2021-10-28 15:30:52",
51 "update_time": "2021-10-28 15:30:52"
52 },
53 {
54 "id": 51,
55 "name": "测试",
56 "group": "aa",
57 "weigh": 50,
58 "create_time": "2021-11-12 15:27:20",
59 "update_time": "2021-11-12 15:27:20"
60 },
61 {
62 "id": 52,
63 "name": "ceshi a",
64 "group": "aaa",
65 "weigh": 50,
66 "create_time": "2021-11-12 15:27:57",
67 "update_time": "2021-11-12 15:27:57"
68 },
69 {
70 "id": 53,
71 "name": "1",
72 "group": "q",
73 "weigh": 0,
74 "create_time": "2021-12-01 16:53:00",
75 "update_time": "2021-12-01 16:53:00"
76 },
77 {
78 "id": 54,
79 "name": "2",
80 "group": "w",
81 "weigh": 0,
82 "create_time": "2021-12-01 16:53:05",
83 "update_time": "2021-12-01 16:53:05"
84 },
85 {
86 "id": 55,
87 "name": "3",
88 "group": "e",
89 "weigh": 0,
90 "create_time": "2021-12-01 16:53:09",
91 "update_time": "2021-12-01 16:53:09"
92 },
93 {
94 "id": 56,
95 "name": "4",
96 "group": "r",
97 "weigh": 0,
98 "create_time": "2021-12-01 16:53:14",
99 "update_time": "2021-12-01 16:53:14"
100 },
101 {
102 "id": 57,
103 "name": "5",
104 "group": "t",
105 "weigh": 0,
106 "create_time": "2021-12-01 16:53:19",
107 "update_time": "2021-12-01 16:53:19"
108 },
109 {
110 "id": 58,
111 "name": "asd",
112 "group": "asss",
113 "weigh": 0,
114 "create_time": "2021-12-04 16:00:54",
115 "update_time": "2021-12-04 16:00:54"
116 }
117 ]
118}
文件管理新建分组
请求 BODY
- groupstringstring
分组标识
- namestringstring
分组名称
参数
- create_timestringstring
创建时间
- groupstringstring
分组标识
- idstringstring
ID
- namestringstring
分组名称
- update_timestringstring
更新时间
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "保存成功",
4 "data": {
5 "name": "qqq",
6 "group": "sss",
7 "create_time": "1970-01-01 08:33:41",
8 "update_time": "1970-01-01 08:33:41",
9 "id": "59"
10 }
11}
导航管理
导航管理信息
参数
- array
导航管理信息
- 数组成员array
导航管理
- 数组成员object
- bannerstringstring
banner背景图
- create_timestringstring
创建时间
- frontend_urlstringstring
链接
- idint
ID
- is_indexint
ID
- keywordsstringstring
关键字
- linkstringstring
跳转链接
- parentstringstring
上级
- parent_idint
上级ID
- seotitlestringstring
SEO名称
- statusstringstring
状态
- status_textstringstring
状态说明
- titlestringstring
导航名称
- typestringstring
类型
- type_idint
类型ID
- type_textstringstring
类型名称
- update_timestringstring
更新时间
- weighint
权重
Example 1
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": [
5 {
6 "id": 13,
7 "type": "link",
8 "parent_id": 0,
9 "title": "阿里云",
10 "banner": "",
11 "seotitle": "这是阿里云,seo 没用",
12 "keywords": "这是关键字,也没求用",
13 "link": "https://www.aliyun.com",
14 "is_index": 0,
15 "status": "normal",
16 "weigh": 50,
17 "create_time": "2021-11-01 14:57:55",
18 "update_time": "2021-11-01 14:57:55",
19 "type_id": 0,
20 "parent": null,
21 "type_text": "链接",
22 "status_text": "正常",
23 "frontend_url": "https://sa.test.7wpp.com/channel/13"
24 },
25 {
26 "id": 1,
27 "type": "category",
28 "parent_id": 0,
29 "title": "新闻中心",
30 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
31 "seotitle": "今日热点新闻大全",
32 "keywords": "热点,大全",
33 "link": "",
34 "is_index": 0,
35 "status": "normal",
36 "weigh": 1,
37 "create_time": "2021-10-14 11:30:43",
38 "update_time": "2021-10-29 11:39:11",
39 "type_id": 0,
40 "children": [
41 {
42 "id": 12,
43 "type": "link",
44 "parent_id": 1,
45 "title": "百度",
46 "banner": "",
47 "seotitle": "这个是百度,seo 没啥用的",
48 "keywords": "关键字也没啥用",
49 "link": "https://www.baidu.com",
50 "is_index": 0,
51 "status": "normal",
52 "weigh": 50,
53 "create_time": "2021-11-01 14:53:46",
54 "update_time": "2021-11-01 14:53:46",
55 "type_id": 0,
56 "parent": {
57 "id": 1,
58 "type": "category",
59 "parent_id": 0,
60 "title": "新闻中心",
61 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
62 "seotitle": "今日热点新闻大全",
63 "keywords": "热点,大全",
64 "link": "",
65 "is_index": 0,
66 "status": "normal",
67 "weigh": 1,
68 "create_time": "2021-10-14 11:30:43",
69 "update_time": "2021-10-29 11:39:11",
70 "type_text": "分类",
71 "status_text": "正常",
72 "frontend_url": "https://sa.test.7wpp.com/channel/1"
73 },
74 "type_text": "链接",
75 "status_text": "正常",
76 "frontend_url": "https://sa.test.7wpp.com/channel/1/12"
77 },
78 {
79 "id": 2,
80 "type": "list",
81 "parent_id": 1,
82 "title": "行业新闻",
83 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
84 "seotitle": "",
85 "keywords": "",
86 "link": "",
87 "is_index": 1,
88 "status": "normal",
89 "weigh": 4,
90 "create_time": "2021-10-14 11:33:21",
91 "update_time": "2021-10-27 16:25:31",
92 "type_id": 0,
93 "parent": {
94 "id": 1,
95 "type": "category",
96 "parent_id": 0,
97 "title": "新闻中心",
98 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
99 "seotitle": "今日热点新闻大全",
100 "keywords": "热点,大全",
101 "link": "",
102 "is_index": 0,
103 "status": "normal",
104 "weigh": 1,
105 "create_time": "2021-10-14 11:30:43",
106 "update_time": "2021-10-29 11:39:11",
107 "parent": null,
108 "type_text": "分类",
109 "status_text": "正常",
110 "frontend_url": "https://sa.test.7wpp.com/channel/1"
111 },
112 "type_text": "列表",
113 "status_text": "正常",
114 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
115 },
116 {
117 "id": 3,
118 "type": "list",
119 "parent_id": 1,
120 "title": "生活新闻",
121 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
122 "seotitle": "",
123 "keywords": "",
124 "link": "",
125 "is_index": 0,
126 "status": "normal",
127 "weigh": 3,
128 "create_time": "2021-10-14 11:33:34",
129 "update_time": "2021-10-27 16:41:40",
130 "type_id": 0,
131 "parent": {
132 "id": 1,
133 "type": "category",
134 "parent_id": 0,
135 "title": "新闻中心",
136 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
137 "seotitle": "今日热点新闻大全",
138 "keywords": "热点,大全",
139 "link": "",
140 "is_index": 0,
141 "status": "normal",
142 "weigh": 1,
143 "create_time": "2021-10-14 11:30:43",
144 "update_time": "2021-10-29 11:39:11",
145 "parent": null,
146 "type_text": "分类",
147 "status_text": "正常",
148 "frontend_url": "https://sa.test.7wpp.com/channel/1"
149 },
150 "type_text": "列表",
151 "status_text": "正常",
152 "frontend_url": "https://sa.test.7wpp.com/channel/1/3"
153 },
154 {
155 "id": 14,
156 "type": "single",
157 "parent_id": 1,
158 "title": "文章",
159 "banner": "/storage/default/20211028/f4c82520f49f88daf775d6420a33239a.jpeg",
160 "seotitle": "钱钱钱",
161 "keywords": "嗡嗡嗡",
162 "link": "",
163 "is_index": 0,
164 "status": "normal",
165 "weigh": 0,
166 "create_time": "2021-11-01 16:01:23",
167 "update_time": "2021-11-01 16:01:23",
168 "type_id": 3,
169 "parent": {
170 "id": 1,
171 "type": "category",
172 "parent_id": 0,
173 "title": "新闻中心",
174 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
175 "seotitle": "今日热点新闻大全",
176 "keywords": "热点,大全",
177 "link": "",
178 "is_index": 0,
179 "status": "normal",
180 "weigh": 1,
181 "create_time": "2021-10-14 11:30:43",
182 "update_time": "2021-10-29 11:39:11",
183 "parent": null,
184 "type_text": "分类",
185 "status_text": "正常",
186 "frontend_url": "https://sa.test.7wpp.com/channel/1"
187 },
188 "type_text": "单页",
189 "status_text": "正常",
190 "frontend_url": "https://sa.test.7wpp.com/channel/1/14"
191 }
192 ],
193 "parent": null,
194 "type_text": "分类",
195 "status_text": "正常",
196 "frontend_url": "https://sa.test.7wpp.com/channel/1"
197 },
198 {
199 "id": 11,
200 "type": "list",
201 "parent_id": 0,
202 "title": "商品列表",
203 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
204 "seotitle": "",
205 "keywords": "",
206 "link": "",
207 "is_index": 0,
208 "status": "normal",
209 "weigh": 0,
210 "create_time": "2021-10-29 10:48:55",
211 "update_time": "2021-11-01 16:55:46",
212 "type_id": 0,
213 "parent": null,
214 "type_text": "列表",
215 "status_text": "正常",
216 "frontend_url": "https://sa.test.7wpp.com/channel/11"
217 },
218 {
219 "id": 15,
220 "type": "single",
221 "parent_id": 0,
222 "title": "关于我们",
223 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
224 "seotitle": "这是 seo",
225 "keywords": "这是关键字",
226 "link": "",
227 "is_index": 0,
228 "status": "normal",
229 "weigh": 0,
230 "create_time": "2021-11-01 17:41:21",
231 "update_time": "2021-11-03 15:19:24",
232 "type_id": 12,
233 "parent": null,
234 "type_text": "单页",
235 "status_text": "正常",
236 "frontend_url": "https://sa.test.7wpp.com/channel/15"
237 },
238 {
239 "id": 21,
240 "type": "single",
241 "parent_id": 0,
242 "title": "adfaa",
243 "banner": "/storage/default/20211130/d262e78063ecebe2d09e940437060c23.jpg",
244 "seotitle": "",
245 "keywords": "",
246 "link": "",
247 "is_index": 0,
248 "status": "normal",
249 "weigh": 0,
250 "create_time": "2021-11-30 18:27:41",
251 "update_time": "2021-11-30 18:27:41",
252 "type_id": 0,
253 "parent": null,
254 "type_text": "单页",
255 "status_text": "正常",
256 "frontend_url": "https://sa.test.7wpp.com/channel/21"
257 }
258 ]
259}
内容管理
内容管理信息
QUERY
- pageint必填
页码
- list_rowsint必填
当前列表显示数量
- searchobject必填
搜索条件
参数
- array
内容管理信息
- 数组成员object
- current_pagestringstring
当前页
- dataarray
内容管理信息
- 数组成员object
- data.channelarray
导航管理
- 数组成员object
- channel.bannerstringstring
banner背景图
- channel.create_timestringstring
创建时间
- channel.frontend_urlstringstring
链接
- channel.idint
ID
- channel.is_indexint
ID
- channel.keywordsstringstring
关键字
- channel.linkstringstring
跳转链接
- channel.parentstringstring
上级
- channel.parent_idint
上级ID
- channel.seotitlestringstring
SEO名称
- channel.statusstringstring
状态
- channel.status_textstringstring
状态说明
- channel.titlestringstring
导航名称
- channel.typestringstring
类型
- channel.type_idint
类型ID
- channel.type_textstringstring
类型名称
- channel.update_timestringstring
更新时间
- channel.weighint
权重
- data.channel_idint
导航id
- data.create_timestringstring
创建时间
- data.descriptionstringstring
描述
- data.idint
ID
- data.imagestringstring
缩略图
- data.viewsint
浏览次数
- data.weightint
权重
- last_pagestringstring
总页数
- per_pagestringstring
每页条数
- totalstringstring
总共条数
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": {
5 "total": 12,
6 "per_page": 10,
7 "current_page": 1,
8 "last_page": 2,
9 "data": [
10 {
11 "id": 22,
12 "channel_id": 2,
13 "title": "5G、物联网、自动驾驶,这些领域都有这家公司的身影",
14 "style": "color:#333333",
15 "image": "/storage/a/20211103/e3416b7a01aa5c4dfb15df0bbc2b1183.jpg",
16 "images": [],
17 "description": "成立于 1985 年的高通公司,如今业务已经涉及人们生活中的方方面面,智能手机、集成电路、物联网、大数据、软件、汽车等领域都有高通的身影。",
18 "type": "content",
19 "link": "",
20 "seotitle": "",
21 "keywords": "",
22 "tags": [],
23 "views": 45320,
24 "weigh": 25,
25 "status": "normal",
26 "create_time": "2021-11-03 16:44:28",
27 "update_time": "2021-11-03 16:44:28",
28 "channel": {
29 "id": 2,
30 "type": "list",
31 "parent_id": 1,
32 "title": "行业新闻",
33 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
34 "seotitle": "",
35 "keywords": "",
36 "link": "",
37 "is_index": 1,
38 "status": "normal",
39 "weigh": 4,
40 "create_time": "2021-10-14 11:33:21",
41 "update_time": "2021-10-27 16:25:31",
42 "type_text": "列表",
43 "status_text": "正常",
44 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
45 },
46 "status_text": "正常"
47 },
48 {
49 "id": 20,
50 "channel_id": 2,
51 "title": "2021 年「绿色诺贝尔奖」公布,6 个普通人获奖了123213",
52 "style": "color:#333333",
53 "image": "/storage/default/20211103/c268d7625c079117084d244ea5b7acc7.jpeg",
54 "images": [],
55 "description": "现实世界里有一群人,他们没有披风、战甲、盾牌、超能力,但是也被人们称为「英雄」。",
56 "type": "content",
57 "link": "",
58 "seotitle": "",
59 "keywords": "",
60 "tags": [],
61 "views": 4854,
62 "weigh": 24,
63 "status": "normal",
64 "create_time": "2021-11-03 16:32:23",
65 "update_time": "2021-11-03 16:34:12",
66 "channel": {
67 "id": 2,
68 "type": "list",
69 "parent_id": 1,
70 "title": "行业新闻",
71 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
72 "seotitle": "",
73 "keywords": "",
74 "link": "",
75 "is_index": 1,
76 "status": "normal",
77 "weigh": 4,
78 "create_time": "2021-10-14 11:33:21",
79 "update_time": "2021-10-27 16:25:31",
80 "parent": {
81 "id": 1,
82 "type": "category",
83 "parent_id": 0,
84 "title": "新闻中心",
85 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
86 "seotitle": "今日热点新闻大全",
87 "keywords": "热点,大全",
88 "link": "",
89 "is_index": 0,
90 "status": "normal",
91 "weigh": 1,
92 "create_time": "2021-10-14 11:30:43",
93 "update_time": "2021-10-29 11:39:11",
94 "type_text": "分类",
95 "status_text": "正常",
96 "frontend_url": "https://sa.test.7wpp.com/channel/1"
97 },
98 "type_text": "列表",
99 "status_text": "正常",
100 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
101 },
102 "status_text": "正常"
103 },
104 {
105 "id": 21,
106 "channel_id": 2,
107 "title": "2021 苹果设计奖出炉!《原神》《英雄联盟》获奖,还有 10 个年度 App",
108 "style": "color:#333333",
109 "image": "/storage/a/20211103/07070a31152a4f92dc8f7e0e3d7b2c6a.jpg",
110 "images": [],
111 "description": "一年一度的苹果设计奖(Apple Design Awards)又来了。",
112 "type": "content",
113 "link": "",
114 "seotitle": "",
115 "keywords": "",
116 "tags": [],
117 "views": 483541,
118 "weigh": 23,
119 "status": "normal",
120 "create_time": "2021-11-03 16:40:42",
121 "update_time": "2021-11-03 16:40:42",
122 "channel": {
123 "id": 2,
124 "type": "list",
125 "parent_id": 1,
126 "title": "行业新闻",
127 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
128 "seotitle": "",
129 "keywords": "",
130 "link": "",
131 "is_index": 1,
132 "status": "normal",
133 "weigh": 4,
134 "create_time": "2021-10-14 11:33:21",
135 "update_time": "2021-10-27 16:25:31",
136 "parent": {
137 "id": 1,
138 "type": "category",
139 "parent_id": 0,
140 "title": "新闻中心",
141 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
142 "seotitle": "今日热点新闻大全",
143 "keywords": "热点,大全",
144 "link": "",
145 "is_index": 0,
146 "status": "normal",
147 "weigh": 1,
148 "create_time": "2021-10-14 11:30:43",
149 "update_time": "2021-10-29 11:39:11",
150 "parent": null,
151 "type_text": "分类",
152 "status_text": "正常",
153 "frontend_url": "https://sa.test.7wpp.com/channel/1"
154 },
155 "type_text": "列表",
156 "status_text": "正常",
157 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
158 },
159 "status_text": "正常"
160 },
161 {
162 "id": 18,
163 "channel_id": 2,
164 "title": "Windows 11 正式发布!界面大变样,Android 应用也能运行,还有这些重磅功能",
165 "style": "color:#333333",
166 "image": "/storage/default/20211103/8e543639a82a6dfe5788f6aa1296f7bf.jpeg",
167 "images": [],
168 "description": "微软这几天过得太刺激了。\n先是 Windows 11 预览版镜像惨遭泄漏。而后微软市值冲破 2 万亿美元,成为继苹果之后,第二家进入 2 万亿俱乐部的美国上市公司。\n「祸兮福之所倚」,微软的心情就像过山车一样。而这列过山车,昨夜又开到了下一个高峰——Windows 11 发布会。\n\n尽管发布会没有中文字幕还老是卡顿,尽管主讲人的首饰多到让人分神,但不得不承认,这是微软近几年",
169 "type": "content",
170 "link": "",
171 "seotitle": "",
172 "keywords": "",
173 "tags": [],
174 "views": 45324,
175 "weigh": 21,
176 "status": "normal",
177 "create_time": "2021-11-03 15:47:09",
178 "update_time": "2021-11-03 15:47:34",
179 "channel": {
180 "id": 2,
181 "type": "list",
182 "parent_id": 1,
183 "title": "行业新闻",
184 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
185 "seotitle": "",
186 "keywords": "",
187 "link": "",
188 "is_index": 1,
189 "status": "normal",
190 "weigh": 4,
191 "create_time": "2021-10-14 11:33:21",
192 "update_time": "2021-10-27 16:25:31",
193 "parent": {
194 "id": 1,
195 "type": "category",
196 "parent_id": 0,
197 "title": "新闻中心",
198 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
199 "seotitle": "今日热点新闻大全",
200 "keywords": "热点,大全",
201 "link": "",
202 "is_index": 0,
203 "status": "normal",
204 "weigh": 1,
205 "create_time": "2021-10-14 11:30:43",
206 "update_time": "2021-10-29 11:39:11",
207 "parent": null,
208 "type_text": "分类",
209 "status_text": "正常",
210 "frontend_url": "https://sa.test.7wpp.com/channel/1"
211 },
212 "type_text": "列表",
213 "status_text": "正常",
214 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
215 },
216 "status_text": "正常"
217 },
218 {
219 "id": 6,
220 "channel_id": 2,
221 "title": "2021 诺贝尔物理学奖揭晓,证明全球变暖和你有关的气象学家获奖了",
222 "style": "color: #333333",
223 "image": "/storage/a/20211028/6e4bb6d3bfdd566123484cf2192fb5fc.jpeg",
224 "images": [],
225 "description": "10 月 5 日,诺贝尔物理学奖因「复杂系统」的研究成果而共同授予日本气象学家真锅淑郎(Syukuro Manabe)、德国气象学家克劳斯·哈塞尔曼(Klaus Hasselmann)和意大利物理学家乔治·帕里西(Giorgio Parisi)。",
226 "type": "content",
227 "link": "",
228 "seotitle": "",
229 "keywords": "",
230 "tags": [],
231 "views": 1541,
232 "weigh": 20,
233 "status": "normal",
234 "create_time": "2021-10-28 14:20:39",
235 "update_time": "2021-11-03 16:47:21",
236 "channel": {
237 "id": 2,
238 "type": "list",
239 "parent_id": 1,
240 "title": "行业新闻",
241 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
242 "seotitle": "",
243 "keywords": "",
244 "link": "",
245 "is_index": 1,
246 "status": "normal",
247 "weigh": 4,
248 "create_time": "2021-10-14 11:33:21",
249 "update_time": "2021-10-27 16:25:31",
250 "parent": {
251 "id": 1,
252 "type": "category",
253 "parent_id": 0,
254 "title": "新闻中心",
255 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
256 "seotitle": "今日热点新闻大全",
257 "keywords": "热点,大全",
258 "link": "",
259 "is_index": 0,
260 "status": "normal",
261 "weigh": 1,
262 "create_time": "2021-10-14 11:30:43",
263 "update_time": "2021-10-29 11:39:11",
264 "parent": null,
265 "type_text": "分类",
266 "status_text": "正常",
267 "frontend_url": "https://sa.test.7wpp.com/channel/1"
268 },
269 "type_text": "列表",
270 "status_text": "正常",
271 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
272 },
273 "status_text": "正常"
274 },
275 {
276 "id": 17,
277 "channel_id": 2,
278 "title": "升级新系统只是为了尝鲜?对于他们来说可能是「刚需」",
279 "style": "color:#333333",
280 "image": "/storage/a/20211103/87e4aaa2d472f2736c6236103c3a612b.jpg",
281 "images": [],
282 "description": "对于系统升级,人们总是会有两种截然相反的观点,一方认为能不升级就不升级,毕竟续航降低、手机变卡的前车之鉴可太多了,图个稳定的用户还是有不少的。",
283 "type": "content",
284 "link": "",
285 "seotitle": "",
286 "keywords": "",
287 "tags": [],
288 "views": 48524,
289 "weigh": 19,
290 "status": "normal",
291 "create_time": "2021-11-03 15:44:47",
292 "update_time": "2021-11-03 15:44:47",
293 "channel": {
294 "id": 2,
295 "type": "list",
296 "parent_id": 1,
297 "title": "行业新闻",
298 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
299 "seotitle": "",
300 "keywords": "",
301 "link": "",
302 "is_index": 1,
303 "status": "normal",
304 "weigh": 4,
305 "create_time": "2021-10-14 11:33:21",
306 "update_time": "2021-10-27 16:25:31",
307 "parent": {
308 "id": 1,
309 "type": "category",
310 "parent_id": 0,
311 "title": "新闻中心",
312 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
313 "seotitle": "今日热点新闻大全",
314 "keywords": "热点,大全",
315 "link": "",
316 "is_index": 0,
317 "status": "normal",
318 "weigh": 1,
319 "create_time": "2021-10-14 11:30:43",
320 "update_time": "2021-10-29 11:39:11",
321 "parent": null,
322 "type_text": "分类",
323 "status_text": "正常",
324 "frontend_url": "https://sa.test.7wpp.com/channel/1"
325 },
326 "type_text": "列表",
327 "status_text": "正常",
328 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
329 },
330 "status_text": "正常"
331 },
332 {
333 "id": 13,
334 "channel_id": 2,
335 "title": "华为 HDC2021 的手语翻译火了,为什么「她」可以如此心灵手巧?",
336 "style": "color:#333333",
337 "image": "/storage/a/20211102/44c74bcab1b9837c9983a39e7fe44fdc.jpg",
338 "images": [
339 "/storage/default/20211028/31cca3c411b4d66637f3227fcfd7bcdd.png",
340 "/storage/default/20211028/1d7328aa2ade1e509a419e14eb7ca29d.jpeg",
341 "/storage/default/20211028/31cca3c411b4d66637f3227fcfd7bcdd.png"
342 ],
343 "description": "10 月 22 日华为开发者大会 2021(Together)在东莞松山湖正式开幕,华为在主题演讲中正式发布了全新的多终端、跨 OS、全场景的华为移动核心服务能力 HMS Core 6,与开发者共建共享共赢 HMS 新生态。但它不仅仅属于开发者,还可能属于我们每一个人。",
344 "type": "content",
345 "link": "",
346 "seotitle": "",
347 "keywords": "",
348 "tags": [],
349 "views": 4532,
350 "weigh": 16,
351 "status": "normal",
352 "create_time": "2021-11-02 14:15:52",
353 "update_time": "2021-11-03 15:42:27",
354 "channel": {
355 "id": 2,
356 "type": "list",
357 "parent_id": 1,
358 "title": "行业新闻",
359 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
360 "seotitle": "",
361 "keywords": "",
362 "link": "",
363 "is_index": 1,
364 "status": "normal",
365 "weigh": 4,
366 "create_time": "2021-10-14 11:33:21",
367 "update_time": "2021-10-27 16:25:31",
368 "parent": {
369 "id": 1,
370 "type": "category",
371 "parent_id": 0,
372 "title": "新闻中心",
373 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
374 "seotitle": "今日热点新闻大全",
375 "keywords": "热点,大全",
376 "link": "",
377 "is_index": 0,
378 "status": "normal",
379 "weigh": 1,
380 "create_time": "2021-10-14 11:30:43",
381 "update_time": "2021-10-29 11:39:11",
382 "parent": null,
383 "type_text": "分类",
384 "status_text": "正常",
385 "frontend_url": "https://sa.test.7wpp.com/channel/1"
386 },
387 "type_text": "列表",
388 "status_text": "正常",
389 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
390 },
391 "status_text": "正常"
392 },
393 {
394 "id": 8,
395 "channel_id": 2,
396 "title": "最快 3 分钟送到,Google 的无人机居然送出了 100000 单快递?",
397 "style": "color:#333333",
398 "image": "/storage/default/20211028/17a09420b16e705ce86e2253e89988bd.jpg",
399 "images": [],
400 "description": "如果给你 21 万美元(大概 136 万元),你会把哪台车列入你的清单之中?",
401 "type": "content",
402 "link": "https://www.baidu.com",
403 "seotitle": "",
404 "keywords": "",
405 "tags": [],
406 "views": 4742,
407 "weigh": 14,
408 "status": "normal",
409 "create_time": "2021-10-28 18:20:03",
410 "update_time": "2021-11-03 16:47:39",
411 "channel": {
412 "id": 2,
413 "type": "list",
414 "parent_id": 1,
415 "title": "行业新闻",
416 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
417 "seotitle": "",
418 "keywords": "",
419 "link": "",
420 "is_index": 1,
421 "status": "normal",
422 "weigh": 4,
423 "create_time": "2021-10-14 11:33:21",
424 "update_time": "2021-10-27 16:25:31",
425 "parent": {
426 "id": 1,
427 "type": "category",
428 "parent_id": 0,
429 "title": "新闻中心",
430 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
431 "seotitle": "今日热点新闻大全",
432 "keywords": "热点,大全",
433 "link": "",
434 "is_index": 0,
435 "status": "normal",
436 "weigh": 1,
437 "create_time": "2021-10-14 11:30:43",
438 "update_time": "2021-10-29 11:39:11",
439 "parent": null,
440 "type_text": "分类",
441 "status_text": "正常",
442 "frontend_url": "https://sa.test.7wpp.com/channel/1"
443 },
444 "type_text": "列表",
445 "status_text": "正常",
446 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
447 },
448 "status_text": "正常"
449 },
450 {
451 "id": 16,
452 "channel_id": 2,
453 "title": "快充缓解了续航焦虑,谁来解决「安全」焦虑?",
454 "style": "color:#333333",
455 "image": "/storage/a/20211103/71b39b8b8e89eac4837d7976061ab336.jpg",
456 "images": [],
457 "description": "1973 年,摩托罗拉的工程师马丁库柏拿着一台砖头大的手机走在曼哈顿的街头,给同样在研究移动电话的对手贝尔实验室打了一通电话。",
458 "type": "content",
459 "link": "",
460 "seotitle": "",
461 "keywords": "",
462 "tags": [],
463 "views": 7482542,
464 "weigh": 11,
465 "status": "normal",
466 "create_time": "2021-11-03 15:42:11",
467 "update_time": "2021-11-03 15:42:19",
468 "channel": {
469 "id": 2,
470 "type": "list",
471 "parent_id": 1,
472 "title": "行业新闻",
473 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
474 "seotitle": "",
475 "keywords": "",
476 "link": "",
477 "is_index": 1,
478 "status": "normal",
479 "weigh": 4,
480 "create_time": "2021-10-14 11:33:21",
481 "update_time": "2021-10-27 16:25:31",
482 "parent": {
483 "id": 1,
484 "type": "category",
485 "parent_id": 0,
486 "title": "新闻中心",
487 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
488 "seotitle": "今日热点新闻大全",
489 "keywords": "热点,大全",
490 "link": "",
491 "is_index": 0,
492 "status": "normal",
493 "weigh": 1,
494 "create_time": "2021-10-14 11:30:43",
495 "update_time": "2021-10-29 11:39:11",
496 "parent": null,
497 "type_text": "分类",
498 "status_text": "正常",
499 "frontend_url": "https://sa.test.7wpp.com/channel/1"
500 },
501 "type_text": "列表",
502 "status_text": "正常",
503 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
504 },
505 "status_text": "正常"
506 },
507 {
508 "id": 7,
509 "channel_id": 2,
510 "title": "你可能不知道,国家电网是中国最多专利的科技公司",
511 "style": "color:#ff0000",
512 "image": "/storage/a/20211028/7b72815b8e9f62da1eb931f6ae1f63dd.jpeg",
513 "images": [],
514 "description": "都说互联网已经成了当今社会的基础设施,但真到了限电时刻,所有人都发现不管科技发展到了怎样的地步,我们生活的基础设施永远是水电煤。",
515 "type": "content",
516 "link": "",
517 "seotitle": "",
518 "keywords": "",
519 "tags": [],
520 "views": 15424,
521 "weigh": 10,
522 "status": "normal",
523 "create_time": "2021-10-28 18:09:45",
524 "update_time": "2021-10-28 18:16:53",
525 "channel": {
526 "id": 2,
527 "type": "list",
528 "parent_id": 1,
529 "title": "行业新闻",
530 "banner": "/storage/smallnews/20211026/03d86b9331d848ffb9dfe259d1d13032.png",
531 "seotitle": "",
532 "keywords": "",
533 "link": "",
534 "is_index": 1,
535 "status": "normal",
536 "weigh": 4,
537 "create_time": "2021-10-14 11:33:21",
538 "update_time": "2021-10-27 16:25:31",
539 "parent": {
540 "id": 1,
541 "type": "category",
542 "parent_id": 0,
543 "title": "新闻中心",
544 "banner": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
545 "seotitle": "今日热点新闻大全",
546 "keywords": "热点,大全",
547 "link": "",
548 "is_index": 0,
549 "status": "normal",
550 "weigh": 1,
551 "create_time": "2021-10-14 11:30:43",
552 "update_time": "2021-10-29 11:39:11",
553 "parent": null,
554 "type_text": "分类",
555 "status_text": "正常",
556 "frontend_url": "https://sa.test.7wpp.com/channel/1"
557 },
558 "type_text": "列表",
559 "status_text": "正常",
560 "frontend_url": "https://sa.test.7wpp.com/channel/1/2"
561 },
562 "status_text": "正常"
563 }
564 ]
565 }
566}
广告区块
广告区块信息
QUERY
- pageint必填
页码
- list_rowsint必填
当前列表显示数量
- searchobject必填
搜索条件
参数
- array
广告区块信息
- 数组成员object
- current_pagestringstring
当前页
- dataarray
内容管理信息
- 数组成员object
- data.create_timestringstring
创建时间
- data.end_timestringstring
结束时间
- data.idint
ID
- data.imagestringstring
缩略图
- data.linkstringstring
跳转链接
- data.positionstringstring
区块位置
- data.start_timestringstring
开始时间
- data.statusstringstring
状态
- data.status_textstringstring
状态说明
- data.titlestringstring
区块名称
- data.update_timestringstring
更新时间
- data.weightint
权重
- last_pagestringstring
总页数
- per_pagestringstring
每页条数
- totalstringstring
总共条数
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": {
5 "total": 3,
6 "per_page": 10,
7 "current_page": 1,
8 "last_page": 1,
9 "data": [
10 {
11 "id": 3,
12 "position": "home",
13 "title": "banner",
14 "image": "/storage/default/20211112/8bebe429636d79b8baca4834c5a62bbb.png",
15 "link": "描述",
16 "start_time": "2021-10-27 00:00:00",
17 "end_time": "2021-11-30 00:00:00",
18 "weigh": 50,
19 "status": "normal",
20 "create_time": "2021-10-13 10:36:24",
21 "update_time": "2021-11-12 14:07:19",
22 "status_text": "正常"
23 },
24 {
25 "id": 8,
26 "position": "profile",
27 "title": "广告",
28 "image": "/storage/a/20211028/03d86b9331d848ffb9dfe259d1d13032.png",
29 "link": "",
30 "start_time": "2021-10-27 00:00:00",
31 "end_time": "2021-11-23 00:00:00",
32 "weigh": 50,
33 "status": "normal",
34 "create_time": "2021-10-26 17:51:01",
35 "update_time": "2021-11-03 16:07:54",
36 "status_text": "正常"
37 },
38 {
39 "id": 10,
40 "position": "home",
41 "title": "banner01",
42 "image": "/storage/a/20211119/e75289ccb8a923139a2d91b189f1f004.png",
43 "link": "",
44 "start_time": "2021-11-18 00:00:00",
45 "end_time": "2021-12-31 00:00:00",
46 "weigh": 2,
47 "status": "normal",
48 "create_time": "2021-11-19 14:40:20",
49 "update_time": "2021-11-19 14:40:20",
50 "status_text": "正常"
51 }
52 ]
53 }
54}
创建广告区块
请求 BODY
- end_timestringstring
结束时间
- imagestringstring
区块图片
- linkstringstring
跳转链接
- positionstringstring
区块位置
- start_timestringstring
开始时间
- statusstringstring
状态
- titlestringstring
标题名称
- weighstringstring
权重
参数
- errorintint32
- msgstringstring
- databooleanboolean
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "保存成功",
4 "data": true
5}
更新广告区块
更新广告区块
路由参数
- idintID
请求 BODY
- end_timestringstring
结束时间
- imagestringstring
区块图片
- linkstringstring
跳转链接
- positionstringstring
区块位置
- start_timestringstring
开始时间
- statusstringstring
状态
- titlestringstring
标题名称
- weighstringstring
权重
参数
- errorintint32
- msgstringstring
- databooleanboolean
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "更新成功",
4 "data": null
5}
自定义菜单
内容管理信息
QUERY
- pageint必填
页码
- list_rowsint必填
当前列表显示数量
- orderstring必填string
排序
- sortstring必填string
排序字段
参数
- array
自定义菜单
- 数组成员object
- currentarray
当前菜单
- 数组成员object
- current.keystringstring
键
- current.namestringstring
名称
- current.typestringstring
类型
- current.sub_buttonarray
子按钮
- 数组成员object
- sub_button.namestringstring
名称
- sub_button.typestringstring
类型
- sub_button.urlstringstring
地址
- listobject
菜单列表
- 子属性
- list.create_timestringstring
创建时间
- list.delete_timestringstring
删除时间
- list.idint
ID
- list.namestringstring
名称
- list.publish_timestringstring
发布时间
- list.rulesarray
规则
- 数组成员object
- rules.keystringstring
键
- rules.namestringstring
名称
- rules.typestringstring
类型
- list.statusint
状态
- list.status_textstringstring
状态描述
- list.update_timestringstring
更新时间
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "操作成功",
4 "data": {
5 "current": [
6 {
7 "type": "click",
8 "name": "今日歌曲",
9 "key": "V1001_TODAY_MUSIC"
10 },
11 {
12 "name": "菜单",
13 "sub_button": [
14 {
15 "type": "view",
16 "name": "搜索",
17 "url": "http://www.soso.com/"
18 },
19 {
20 "type": "view",
21 "name": "视频",
22 "url": "http://v.qq.com/"
23 },
24 {
25 "type": "click",
26 "name": "赞一下我们",
27 "key": "V1001_GOOD"
28 }
29 ]
30 }
31 ],
32 "list": {
33 "total": 18,
34 "per_page": 10,
35 "current_page": 2,
36 "last_page": 2,
37 "data": [
38 {
39 "id": 6,
40 "name": "腾飞测试",
41 "rules": [
42 {
43 "type": "view",
44 "name": "往期内容",
45 "url": "www.baidu.com"
46 },
47 {
48 "name": "菜单",
49 "sub_button": [
50 {
51 "type": "view",
52 "name": "搜索",
53 "url": "http://www.soso.com/"
54 },
55 {
56 "type": "view",
57 "name": "视频",
58 "url": "http://v.qq.com/"
59 },
60 {
61 "type": "click",
62 "name": "赞一下我们",
63 "url": "",
64 "media_type": "",
65 "media_id": ""
66 }
67 ]
68 }
69 ],
70 "status": 0,
71 "publish_time": 1638238891,
72 "create_time": "2021-11-20 14:57:36",
73 "update_time": "2021-11-30 14:29:55",
74 "delete_time": null,
75 "status_text": "未发布"
76 },
77 {
78 "id": 23,
79 "name": "111",
80 "rules": [
81 {
82 "name": "未命名1",
83 "type": "click",
84 "media_type": "news",
85 "media_id": "peof9-HEApNrrboP09A6UH3iucKIE_vAs30oN0oTnpg"
86 }
87 ],
88 "status": 0,
89 "publish_time": null,
90 "create_time": "2021-11-30 16:55:05",
91 "update_time": "2021-11-30 16:55:05",
92 "delete_time": null,
93 "status_text": "未发布"
94 },
95 {
96 "id": 27,
97 "name": "lanergg",
98 "rules": [
99 {
100 "name": "1",
101 "type": "view",
102 "url": "11"
103 },
104 {
105 "name": "2",
106 "type": "miniprogram",
107 "url": "21",
108 "appid": "22",
109 "pagepath": "23"
110 },
111 {
112 "name": "3",
113 "type": "click",
114 "media_type": "news",
115 "media_id": "peof9-HEApNrrboP09A6UIgKhMYfkmdjcwMik4JmzXk"
116 }
117 ],
118 "status": 0,
119 "publish_time": null,
120 "create_time": "2021-11-30 17:06:39",
121 "update_time": "2021-11-30 17:23:23",
122 "delete_time": null,
123 "status_text": "未发布"
124 },
125 {
126 "id": 28,
127 "name": "复制 复制 复制 复制 当前菜单",
128 "rules": [
129 {
130 "type": "click",
131 "name": "今日歌曲",
132 "key": "V1001_TODAY_MUSIC",
133 "selected": "1",
134 "show": "1",
135 "url": "",
136 "appid": "",
137 "pagepath": "",
138 "sub_button": [],
139 "media_type": "news",
140 "media_id": "peof9-HEApNrrboP09A6UIXTPcinu7LSe3iTlpzGpV0"
141 },
142 {
143 "name": "菜单",
144 "sub_button": [
145 {
146 "type": "view",
147 "name": "搜索",
148 "url": "http://www.soso.com/",
149 "selected": "",
150 "show": "",
151 "appid": "",
152 "pagepath": "",
153 "sub_button": [],
154 "media_type": "",
155 "media_id": ""
156 },
157 {
158 "type": "view",
159 "name": "视频",
160 "url": "http://v.qq.com/",
161 "selected": "",
162 "show": "",
163 "appid": "",
164 "pagepath": "",
165 "sub_button": [],
166 "media_type": "",
167 "media_id": ""
168 },
169 {
170 "type": "click",
171 "name": "赞一下我们",
172 "key": "V1001_GOOD",
173 "selected": "",
174 "show": "",
175 "url": "",
176 "appid": "",
177 "pagepath": "",
178 "sub_button": [],
179 "media_type": "",
180 "media_id": ""
181 }
182 ],
183 "selected": "",
184 "show": "",
185 "type": "",
186 "url": "",
187 "appid": "",
188 "pagepath": "",
189 "media_type": "",
190 "media_id": ""
191 }
192 ],
193 "status": 0,
194 "publish_time": null,
195 "create_time": "2021-12-01 14:05:05",
196 "update_time": "2021-12-01 14:05:05",
197 "delete_time": null,
198 "status_text": "未发布"
199 },
200 {
201 "id": 29,
202 "name": "复制 复制 复制 复制 当前菜单",
203 "rules": [
204 {
205 "type": "click",
206 "name": "今日歌曲",
207 "key": "V1001_TODAY_MUSIC",
208 "selected": "1",
209 "show": "1",
210 "url": "",
211 "appid": "",
212 "pagepath": "",
213 "sub_button": [],
214 "media_type": "news",
215 "media_id": "peof9-HEApNrrboP09A6UIXTPcinu7LSe3iTlpzGpV0"
216 },
217 {
218 "name": "菜单",
219 "sub_button": [
220 {
221 "type": "view",
222 "name": "搜索",
223 "url": "http://www.soso.com/",
224 "selected": "",
225 "show": "",
226 "appid": "",
227 "pagepath": "",
228 "sub_button": [],
229 "media_type": "",
230 "media_id": ""
231 },
232 {
233 "type": "view",
234 "name": "视频",
235 "url": "http://v.qq.com/",
236 "selected": "",
237 "show": "",
238 "appid": "",
239 "pagepath": "",
240 "sub_button": [],
241 "media_type": "",
242 "media_id": ""
243 },
244 {
245 "type": "click",
246 "name": "赞一下我们",
247 "key": "V1001_GOOD",
248 "selected": "",
249 "show": "",
250 "url": "",
251 "appid": "",
252 "pagepath": "",
253 "sub_button": [],
254 "media_type": "",
255 "media_id": ""
256 }
257 ],
258 "selected": "",
259 "show": "",
260 "type": "",
261 "url": "",
262 "appid": "",
263 "pagepath": "",
264 "media_type": "",
265 "media_id": ""
266 }
267 ],
268 "status": 0,
269 "publish_time": null,
270 "create_time": "2021-12-01 14:05:06",
271 "update_time": "2021-12-01 14:05:06",
272 "delete_time": null,
273 "status_text": "未发布"
274 },
275 {
276 "id": 30,
277 "name": "复制 复制 复制 复制 当前菜单",
278 "rules": [
279 {
280 "type": "click",
281 "name": "今日歌曲",
282 "key": "V1001_TODAY_MUSIC",
283 "selected": "1",
284 "show": "1",
285 "url": "",
286 "appid": "",
287 "pagepath": "",
288 "sub_button": [],
289 "media_type": "news",
290 "media_id": "peof9-HEApNrrboP09A6UIXTPcinu7LSe3iTlpzGpV0"
291 },
292 {
293 "name": "菜单",
294 "sub_button": [
295 {
296 "type": "view",
297 "name": "搜索",
298 "url": "http://www.soso.com/",
299 "selected": "",
300 "show": "",
301 "appid": "",
302 "pagepath": "",
303 "sub_button": [],
304 "media_type": "",
305 "media_id": ""
306 },
307 {
308 "type": "view",
309 "name": "视频",
310 "url": "http://v.qq.com/",
311 "selected": "",
312 "show": "",
313 "appid": "",
314 "pagepath": "",
315 "sub_button": [],
316 "media_type": "",
317 "media_id": ""
318 },
319 {
320 "type": "click",
321 "name": "赞一下我们",
322 "key": "V1001_GOOD",
323 "selected": "",
324 "show": "",
325 "url": "",
326 "appid": "",
327 "pagepath": "",
328 "sub_button": [],
329 "media_type": "",
330 "media_id": ""
331 }
332 ],
333 "selected": "",
334 "show": "",
335 "type": "",
336 "url": "",
337 "appid": "",
338 "pagepath": "",
339 "media_type": "",
340 "media_id": ""
341 }
342 ],
343 "status": 0,
344 "publish_time": null,
345 "create_time": "2021-12-01 14:05:08",
346 "update_time": "2021-12-01 14:05:08",
347 "delete_time": null,
348 "status_text": "未发布"
349 },
350 {
351 "id": 31,
352 "name": "111",
353 "rules": [
354 {
355 "name": "1",
356 "type": "view",
357 "url": "http://1"
358 },
359 {
360 "name": "2",
361 "type": "click",
362 "key": "news|peof9-HEApNrrboP09A6UIgKhMYfkmdjcwMik4JmzXk"
363 }
364 ],
365 "status": 0,
366 "publish_time": 1638353135,
367 "create_time": "2021-12-01 17:31:12",
368 "update_time": "2021-12-01 18:05:35",
369 "delete_time": null,
370 "status_text": "未发布"
371 },
372 {
373 "id": 5,
374 "name": "复制 复制 复制 当前菜单",
375 "rules": [
376 {
377 "type": "click",
378 "name": "今日歌曲",
379 "key": "V1001_TODAY_MUSIC|undefined"
380 },
381 {
382 "name": "菜单",
383 "sub_button": [
384 {
385 "type": "view",
386 "name": "搜索",
387 "url": "http://www.soso.com/"
388 },
389 {
390 "type": "view",
391 "name": "视频",
392 "url": "http://v.qq.com/"
393 },
394 {
395 "type": "click",
396 "name": "赞一下我们",
397 "key": "V1001_GOOD|undefined"
398 }
399 ]
400 }
401 ],
402 "status": 1,
403 "publish_time": 1638518952,
404 "create_time": "2021-11-20 14:57:34",
405 "update_time": "2021-12-08 10:40:46",
406 "delete_time": null,
407 "status_text": "已发布"
408 }
409 ]
410 }
411 }
412}
自动回复
自动回复信息
QUERY
- groupstring必填string
参数
- array
自动回复信息
- 数组成员array
自动回复
自动回复信息
- 数组成员object
- contentstringstring
回复内容
- create_timestringstring
创建时间
- delete_timestringstring
删除时间
- groupstringstring
分组
- group_textstringstring
分组名称
- idint
ID
- keywordsarray
关键字
- 数组成员string
- string
关键字名称
- statusstringstring
状态
- status_textstringstring
状态名称
- typestringstring
类型
- type_textstringstring
类型名称
- update_timestringstring
更新时间
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "操作成功",
4 "data": [
5 {
6 "id": 44,
7 "group": "keywords",
8 "type": "news",
9 "status": "enable",
10 "keywords": [
11 "fgdg"
12 ],
13 "content": "peof9-HEApNrrboP09A6UFS71ALKZUABYEB9Q2xOfuU",
14 "create_time": "2021-12-28 14:07:38",
15 "update_time": "2021-12-28 14:07:38",
16 "delete_time": null,
17 "type_text": "图文消息",
18 "group_text": "关键词回复",
19 "status_text": "启用"
20 }
21 ]
22}
新建自动回复
请求 BODY
- contentstringstring
回复内容
- groupstringstring
分组
- keywordsarray
关键字
- 数组成员string
- string
关键字名称
- statusstringstring
状态
- typestringstring
类型
参数
- errorintint32
- msgstringstring
- dataobject
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "保存成功",
4 "data": null
5}
更新自动回复
更新自动回复
路由参数
- idintID
请求 BODY
- array必填
自动回复
自动回复信息
- 数组成员object
- contentstringstring
回复内容
- create_timestringstring
创建时间
- delete_timestringstring
删除时间
- groupstringstring
分组
- group_textstringstring
分组名称
- idint
ID
- keywordsarray
关键字
- 数组成员string
- string
关键字名称
- statusstringstring
状态
- status_textstringstring
状态名称
- typestringstring
类型
- type_textstringstring
类型名称
- update_timestringstring
更新时间
参数
- errorintint32
- msgstringstring
- databooleanboolean
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "更新成功",
4 "data": true
5}
删除自动回复
删除自动回复区块
路由参数
- idintID
请求 BODY
- is_realint
is_real
参数
- errorint
状态码
- msgstringstring
提醒
- databooleanboolean
返回数据
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "删除成功",
4 "data": null
5}
素材管理
素材管理信息
QUERY
- pageint必填
页码
- list_rowsint必填
当前列表显示数量
- typestring必填string
类型
参数
- array
素材管理
- 数组成员object
- current_pageint
当前页
- dataarray
返回数据
- 数组成员object
- data.contentobject
内容
- 子属性
- content.create_timeint
创建时间
- content.news_itemarray
新闻内容
- 数组成员object
- news_item.authorstringstring
作者
- news_item.contentstringstring
内容
- news_item.content_source_urlstringstring
图文消息的原文地址,即点击“阅读原文”后的URL
- news_item.digeststringstring
摘要
- news_item.need_open_commentint
Uint32 是否打开评论,0不打开,1打开
- news_item.only_fans_can_commentint
Uint32 是否粉丝才可评论,0所有人可评论,1粉丝才可评论
- news_item.show_cover_picstringstring
是否显示封面,0为false,即不显示,1为true,即显示
- news_item.thumb_media_idstringstring
封面图片素材id
- news_item.thumb_urlstringstring
封面图片地址
- news_item.titlestringstring
标题
- news_item.urlstringstring
地址
- content.update_timeint
更新时间
- data.media_idstringstring
媒体id
- data.update_timeint
更新时间
- last_pageint
页数
- per_pageint
每页条数
- totalint
所有条数
Example 1
请求示例
成功示例
1{
2 "error": 0,
3 "msg": "获取成功",
4 "data": {
5 "current_page": 1,
6 "data": [
7 {
8 "media_id": "peof9-HEApNrrboP09A6UFS71ALKZUABYEB9Q2xOfuU",
9 "content": {
10 "news_item": [
11 {
12 "title": "只有河南",
13 "author": "",
14 "digest": "",
15 "content": "",
16 "content_source_url": "",
17 "thumb_media_id": "",
18 "show_cover_pic": 0,
19 "url": "http://mp.weixin.qq.com/s?__biz=MzkzNDI3MjU2Mw==&mid=100000035&idx=1&sn=a330cfdbb5182e36379c213718203517&chksm=42be8a7f75c903697637ff5a00a0ffd9eb1646c5b50fc60cb4554bf223722ad7a6928066b964#rd",
20 "thumb_url": "http://mmbiz.qpic.cn/mmbiz_jpg/ia2vA1n8M9jF9B9Xjr0pTRaUZicavwAbwXm4BLVJicEMh5NG9LJ6Ry4G2HxrjfrHLhOOpmiaHpomg7KEOQUF18eCvg/0?wx_fmt=jpeg",
21 "need_open_comment": 0,
22 "only_fans_can_comment": 0
23 }
24 ],
25 "create_time": 1638177429,
26 "update_time": 1638177434
27 },
28 "update_time": 1638177434
29 },
30 {
31 "media_id": "peof9-HEApNrrboP09A6UM2T-XdKBZAZVqJ1Su98yIs",
32 "content": {
33 "news_item": [
34 {
35 "title": "535b_0108_0708_d1138772606b54b029990bd2c0b3f7e9",
36 "author": "",
37 "digest": "",
38 "content": "",
39 "content_source_url": "",