简要描述:

  • 员工审批-审批记录-获取列表

请求域名:

  • http://xx.com

请求URL:

xx.com/business/{公众号id}/plugin/StaffAudit/getAuditLog

请求类型

POST

参数:

参数名 是否必须 类型 说明
search[uid] int 搜索条件-uid
search[member] string 搜索条件-会员昵称等
search[apply_name] string 搜索条件-申请人
search[department_id] int 搜索条件-部门ID
search[status] int 搜索条件-状态(0-待确认,1-待审核,2-审核通过,-1审核驳回)默认传空字符串
search[start_time] int 搜索条件-开始时间(时间戳)
search[end_time] int 搜索条件-结束时间(时间戳)
search[time_type] int 搜索条件-时间类型(1-提交时间,2-申请时间)

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "uniacid": 25,
                "business_id": 11,
                "uid": 163951,
                "apply_name": "申请人1",
                "apply_time": 1669003985,
                "department_id": 46,
                "reason": "mei li you",//申请事由
                "reward_point": "9.96",//奖励积分
                "status": 0,
                "created_at": "2022-11-21 12:13:05",//提交时间
                "updated_at": "2022-11-21 12:13:05",
                "deleted_at": null,
                "audit_status_str": "待确认",//状态
                "apply_time_ymd_str": "2022-11-21",//申请时间
				"department_name": "子部门2",//所在部门
				//会员
                "has_one_member": {
                    "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/743U6Hk3eR9kNfd7RrFZ6NxoZffpHLDEAFkcnoK977n36gV6CB7TfPq8yQzDFMaLNPDN7CYZO3LfxSLcBX5doA/132",
                    "nickname": "13*******18",
                    "uid": 163951,//会员ID
                    "avatar_image": "https://thirdwx.qlogo.cn/mmopen/vi_32/743U6Hk3eR9kNfd7RrFZ6NxoZffpHLDEAFkcnoK977n36gV6CB7TfPq8yQzDFMaLNPDN7CYZO3LfxSLcBX5doA/132",//会员头像
                    "username": "13*******18"//会员昵称
                }
            }
        ],
        "first_page_url": "http://dev.yz/business/25/plugin/StaffAudit/getAuditLog?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://dev.yz/business/25/plugin/StaffAudit/getAuditLog?page=1",
        "next_page_url": null,
        "path": "http://dev.yz/business/25/plugin/StaffAudit/getAuditLog",
        "per_page": 15,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}