列表
优质
小牛编辑
142浏览
2023-12-01
请求地址
https://api.es.xiaojukeji.com/river/Regulation/get
请求方式
GET
返回数据格式
JSON
是否需要登录
是 关于登录授权,参见 如何登录授权
访问授权限制
暂无
请求参数
名称 | 类型 | 必选 | 描述 |
client_id | string | yes | 申请应用时分配的AppKey |
access_token | string | yes | 授权后的access token |
timestamp | int | yes | 当前时间戳,精确到秒级 |
company_id | bigint | yes | 企业ID |
sign | string(32) | yes | 签名 |
请求示例
curl -X GET -H "Content-Type: application/x-www-form-urlencoded" https://api.es.xiaojukeji.com/river/Regulation/get?client_id=client_id_test&access_token=141ea31466
返回参数说明
返回值字段 | 字段类型 | 字段说明 |
errno | string | 0表示成功,非0表示失败 |
errmsg | string | errno=0时为常量"SUCCESS",errno!=0时为错误信息 |
data | array | 制度列表信息 |
data数组元素格式
名称 | 类型 | 描述 |
regulation_id | string | 制度id |
regulation_name | string | 制度名称 |
regulation_status | int | 制度状态(0-停用 1-正常 2-删除 3-过期) |
scene_type | int | 因公出行场景(0-个人用车、1-商务出行、2-差旅、3-加班、4-办公地点通勤、5-疫期通勤、11-会议用车、91-代叫车、92-接送机、93-包车、94-代驾、95-私车同行、96-行前审批) |
is_use_quota | int | 是否使用个人限额(0-不使用、1-使用),差旅制度默认返回不使用 |
is_approve | int | 制度是否需要审批(0-无需审批,1-需审批) |
返回示例
{
"errno":0,
"errmsg":"SUCCESS",
"data":[
{
"regulation_id":"9668294457792204005",
"regulation_name":"xxxxxxx",
"regulation_status":"0",
"scene_type":"4",
"is_use_quota":"0",
"is_approval":"1"
}
]
}
接口错误解决方案
通用错误解决文档
- 4xx 错误
- 1xxx 错误