## 获取考勤规则列表
**简要描述:**
* 获取考勤规则列表
**请求URL:**
* /attendance/findRules
**请求方式:**
* POST
**请求参数:**
| 参数名 | 必选 | 类型 | 说明 |
| --- | --- | --- | --- |
| company_id | 是 | number | 平台id |
| school_id | 否 | number | 学校id |
| current_page | 否 | number | 当前页 |
| per_page | 否 | number | 分页查询每页数量 默认 10 |
**返回参数:**
| 参数名 | 必选 | 类型 | 说明 |
| --- | --- | --- | --- |
| current\_page | 否 | number | 当前页 |
| per\_page | 否 | number | 分页查询每页数量 默认 10 |
| last\_page | 否 | number | 最后页 |
| total | 否 | number | 总数量 |
| id | 是 | int | 记录id |
| company\_id | 是 | int | 平台id |
| school\_id | 是 | int | 学校id |
| school\_name | 是 | string | 学校名称 |
| type | 是 | int | 1上课考勤 2上学考勤 |
| start\_time | 是 | string | 上学考勤开始时间 |
| end\_time | 是 | string | 上学考勤结束时间 |
| add\_time | 是 | string | 创建时间 |
**返回示例**
~~~
{
"code":200,
"msg":"",
"data":{
"total":"1",
"current_page":"1",
"last_page ":"1",
"per_page ":"10",
"keyword":"",
"device_list":[
{
"id":"1",
"company_id":"1",
"school_id":"1",
"school_name":"学校名称",
"type":"2",
"start_time":"08:00",
"end_time":"16:00",
"add_time":"2020-10-16 11:08:57"
},
{
"id":"1",
"company_id":"1",
"school_id":"1",
"school_name":"学校名称",
"type":"1",
"start_time":"",
"end_time":"",
"add_time":"2020-10-16 11:08:57"
}
]
}
}
~~~