## :-: **首頁內容**
~~~[api]
get:/api/Index/index
int:zixun_catid=15#資訊分類的id
<<<
success
{
"code": 200,
"msg": "獲取數據成功",
"data": {
"category": [
{
"id": 8,
"name": "技能培訓"
},
{
"id": 30,
"name": "臨床科研"
},
{
"id": 10,
"name": "成果轉化"
},
{
"id": 11,
"name": "醫護到家"
},
{
"id": 14,
"name": "更多資訊"
}
],
"yhzs": [
{
"id": 6,
"gather_type": 1,
"gather_id": 68,
"gather_info": {
"id": 68,
"title": "歐珀",
"thumb": ""
}
},
{
"id": 5,
"gather_type": 1,
"gather_id": 67,
"gather_info": {
"id": 67,
"title": "北京市",
"thumb": ""
}
}
],
"zixun": [
{
"id": 11,
"gather_type": 1,
"gather_id": 73,
"gather_info": {
"id": 73,
"title": "英雄聯盟",
"description": "",
"thumb": "",
"create_time": "2021-06-23 09:53:41",
"views": 0
}
}
]
}
}
~~~
### 返回字段說明
| 字段 | 說明 |
| --- | --- |
| category | 欄目的信息 |
| category-id | 欄目的id |
| category-name | 欄目名稱 |
| yhzs | 醫護資料信息 |
| yhzs-id| list列表的id |
| yhzs-gather_id| 對應的文章、視頻的id |
| yhzs-gather_type | 1=文章;2=視頻 |
| yhzs-gather_info | 文章或者視頻的信息 |
| yhzs-gather_info(id) | 文章或者視頻的id |
| yhzs-gather_info(title) | 文章或者視頻的標題 |
| yhzs-gather_info(description) | 文章或者視頻的簡介 |
| yhzs-gather_info(thumb) | 文章縮略圖 |
| yhzs-gather_info(cover_url) | 視頻的縮略圖 |
| yhzs-gather_info(views) | 文章閱讀量 |
| yhzs-gather_info(view_counts) | 視頻的閱讀量 |
| yhzs-gather_info(create_time) | 文章或視頻的發布時間 |