请求例子:
apirq('prtpl', {
method: "post",
data: {
"name": "运单打印",
"alias": "waybill",
"type": 1,
"content": "123456"
}
})
返回数据结果:
{
"code": 0,
"msg": "数据添加成功!",
"time": "1523934133",
"data": {
"id": 1,
"name": "运单打印",
"alias": "waybill",
"type": 1,
"content": "123456",
"create_time": "2018-04-17 11:02:13",
"create_by": {
"uid": "0000000000000001",
"code": "U1000000",
"username": "administrator",
"nickname": "超级管理员",
"realname": "超级管理员"
},
"update_time": "2018-04-17 11:10:42",
"update_by": {
"uid": "0000000000000001",
"code": "U1000000",
"username": "administrator",
"nickname": "超级管理员",
"realname": "超级管理员"
},
"status": 1
}
}