请求例子:
apirq('position', {
method: "post",
data: {
"dpmt_id": 61,
"name": "添加测试新职位"
}
})
返回数据结果:
{
"code": 0,
"msg": "数据添加成功!",
"time": "1523600022",
"data": {
"id": 69,
"dpmt_id": 61,
"create_time": "2018-04-13 14:13:42",
"create_by": {
"uid": "0000000000000001",
"code": "U1000000",
"username": "administrator",
"nickname": "超级管理员",
"realname": "超级管理员"
},
"update_time": "2018-04-13 14:13:42",
"update_by": {
"uid": "0000000000000001",
"code": "U1000000",
"username": "administrator",
"nickname": "超级管理员",
"realname": "超级管理员"
},
"status": 1,
"bandel": 0,
"name": "添加测试新职位",
"description": "",
"dpinfo": {
"id": 61,
"dp_type": 4,
"dp_id": "1e23852bfc7ec92a",
"pid": 0,
"status": 1,
"bandel": 0,
"create_time": "2018-04-13 11:27:51",
"create_by": "0000000000000001",
"update_time": "2018-04-13 11:27:51",
"update_by": "0000000000000001",
"name": "运营部",
"description": "测试一个网点网点运营部门"
}
}
}