请求例子:
apirq('department', {
method: "post",
data: {
"dp_type": 4,
"dp_id": "1e23852bfc7ec92a",
"name": "最后一个测试部门",
"description": "tebbbb"
}
})
返回数据结果:
{
"code": 0,
"msg": "数据添加成功!",
"time": "1523597197",
"data": {
"id": 62,
"dp_type": 4,
"dp_id": "1e23852bfc7ec92a",
"pid": 0,
"status": 1,
"bandel": 0,
"create_time": "2018-04-13 13:26:37",
"create_by": {
"uid": "0000000000000001",
"code": "U1000000",
"username": "administrator",
"nickname": "超级管理员",
"realname": "超级管理员"
},
"update_time": "2018-04-13 13:26:37",
"update_by": {
"uid": "0000000000000001",
"code": "U1000000",
"username": "administrator",
"nickname": "超级管理员",
"realname": "超级管理员"
},
"name": "最后一个测试部门",
"description": "tebbbb",
"orginfo": {
"net_id": "1e23852bfc7ec92a",
"code": "N69046",
"com_id": "dc332415f1c87f9b",
"join_type": 1,
"status": 0,
"unloading": 1,
"create_time": "2018-04-13 11:27:50",
"create_by": {
"uid": "0000000000000001",
"code": "U1000000",
"username": "administrator",
"nickname": "超级管理员",
"realname": "超级管理员"
},
"update_time": "2018-04-13 11:44:44",
"update_by": {
"uid": "0000000000000001",
"code": "U1000000",
"username": "administrator",
"nickname": "超级管理员",
"realname": "超级管理员"
},
"delete_time": null,
"runin_time": "-",
"runout_time": "-",
"country_id": 1,
"province_id": 1,
"city_id": 2,
"district_id": 3,
"street_id": 0,
"lng": "30.123000",
"lat": "40.155230",
"joining_fee": "0.00",
"name": "测试一个网s点222",
"initials": "csygws",
"english_name": "testanet",
"address": "四川一个城",
"contacts": "刘长明",
"mobile": "13212345678",
"tel": "",
"fax": "",
"email": "",
"cover": "",
"picture_list": "",
"img_business_license": "",
"img_transport_license": "",
"img_corporation_idcard": "",
"description": "",
"remark": "",
"cominfo": {
"com_id": "dc332415f1c87f9b",
"code": "C38086",
"name": "杨天天",
"address": "北京市海淀区学院路37号北京航空航天大学",
"contacts": "1321456789",
"mobile": "要小李"
},
"otype_name": "网点"
}
}
}