请求例子:
apirq('netpoint', {
method: "post",
data: {
"com_id": "dc332415f1c87f9b",
"join_type": 1,
"province_id": 1,
"city_id": 2,
"district_id": 3,
"lng": 30.123,
"lat": 40.123,
"name": "测试一个网点",
"english_name": "testanet",
"address": "四川一个城",
"contacts": "刘长明",
"mobile": "13212345678"
}
})
返回数据结果:
{
"code": 0,
"msg": "数据添加成功!",
"time": "1523590070",
"data": {
"net_id": "1e23852bfc7ec92a",
"code": "N69046",
"com_id": "dc332415f1c87f9b",
"join_type": 1,
"status": 1,
"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:27:50",
"update_by": {
"uid": "0000000000000001",
"code": "U1000000",
"username": "administrator",
"nickname": "超级管理员",
"realname": "超级管理员"
},
"delete_time": null,
"runin_time": "2018-04-13 11:27:50",
"runout_time": "2019-04-13 11:27:50",
"country_id": 1,
"province_id": 1,
"city_id": 2,
"district_id": 3,
"street_id": 0,
"lng": "30.123000",
"lat": "40.123000",
"joining_fee": "0.00",
"name": "测试一个网点",
"initials": "csygwd",
"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": "要小李"
}
}
}