获取新闻类型
# 接口---获取新闻类型
## 用途
```
```
### 请求参数
| 参数 | 说明 | 类型 | 备注 | 是否必填 |
| ------- | -------- | ------ | ------------------- | -------- |
| _handle | 处理类 | string | 固定值:SysPage | 是 |
| _method | 处理方法 | string | 固定值:GetNewsType | 是 |
#### 请求地址
```
/api/index/?_handle=SysPage&_method=GetNewsType
```
##### 返回值
```json
{
"code": 1,
"msg": "",
"data": [
{
"Id": {
"Timestamp": 1560925082,
"Machine": 15438097,
"Pid": 19076,
"Increment": 49,
"CreationTime": "2019-06-19T06:18:02Z"
},
"newstype_id": 1001,
"newstype_title": "t1",
"newstype_index": 1,
"newstype_isdel": 0
},
{
"Id": {
"Timestamp": 1560925086,
"Machine": 15438097,
"Pid": 19076,
"Increment": 52,
"CreationTime": "2019-06-19T06:18:06Z"
},
"newstype_id": 1002,// /// 新闻类型自增id
"newstype_title": "t2", /// 新闻分类名称
"newstype_index": 2, /// 新闻类型索引
"newstype_isdel": 0 /// 是否删除 0正常 1删除
}
]
}
```
###### 返回值说明
| 参数 | 说明 | 类型 | 备注 |
| ---- | ---------- | ------ | --------------------------- |
| code | 接口状态码 | int | 参见xykj result code status |
| msg | 接口信息 | string | |
| data | 接口信息 | object | |