- 必看
- 管理后台
- 工作台
- 登录
- 装修管理
- 文章资讯
- 消息通知
- 渠道设置
- 组织管理
- 权限管理
- 系统设置
- 文件管理
- 存储引擎
- 开发工具
- 用户管理
- 通用数据
- 营销应用
- 财务管理
- 手机端
- PC端
- 参数说明
首页数据
开发中
GET
/api/pc/index
请求参数
无
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://www.likeadmin.localhost/api/pc/index'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"page": {
"id": 1,
"type": 1,
"name": "商城首页",
"data": "[{\"id\":\"l8ctwzv4r1zl0\",\"title\":\"搜索\",\"name\":\"search\",\"disabled\":1,\"content\":{},\"styles\":{}},{\"id\":\"l8ctwzv455un3\",\"title\":\"首页轮播图\",\"name\":\"banner\",\"content\":{\"enabled\":1,\"data\":[{\"image\":\"uploads/images/20220926/20220926174457333646121.png\",\"name\":\"11\",\"link\":{\"path\":\"/pages/user_data/user_data\",\"name\":\"个人资料\",\"type\":\"shop\"}}]},\"styles\":{}},{\"id\":\"l8ctwzv4d0jns\",\"title\":\"导航菜单\",\"name\":\"nav\",\"content\":{\"enabled\":1,\"data\":[{\"image\":\"uploads/images/20220926/20220926174457333646121.png\",\"name\":\"导航名称\",\"link\":{\"path\":\"/pages/news/news\",\"name\":\"文章资讯\",\"type\":\"shop\"}}]},\"styles\":{}},{\"id\":\"l8ctwzv4jadxc\",\"title\":\"资讯\",\"name\":\"news\",\"disabled\":1,\"content\":{},\"styles\":{}}]",
"create_time": "2022-08-29 15:13:08",
"update_time": "2022-10-11 15:12:51"
},
"all": [
{
"id": 2,
"title": "测试文章11111",
"desc": "123",
"abstract": "213",
"image": "",
"author": "测试123",
"create_time": "2022-10-19 10:03:21",
"click": 3
}
],
"new": [
{
"id": 3,
"title": "测试文章222",
"desc": "123",
"abstract": "12321",
"image": "",
"author": "测试222",
"create_time": "2022-10-19 10:03:40",
"click": 0
}
],
"hot": [
{
"id": 2,
"title": "测试文章11111",
"desc": "123",
"abstract": "213",
"image": "",
"author": "测试123",
"create_time": "2022-10-19 10:03:21",
"click": 3
}
]
}
}
🟢200成功
修改于 2022-10-19 06:28:09