添加一个新的账务科目
更新时间:2018-04-25 18:42:34 更新人员:叶洋

文档状态:完成 #246
测试接口
摘要
添加一个新的账务科目
-
接口基本信息
接口名称:添加一个新的帐务科目
请求方法:POST
接口地址:accountsubject
登录验证:是
-
请求参数
| 参数名 |
参数 |
数据类型 |
是否必须 |
示例值 |
说明 |
| pid |
上级科目ID |
int |
是 |
|
|
| sort |
排序序号 |
int |
否 |
|
|
| title |
科目名称 |
string |
是 |
|
|
| alias |
科目别名 |
string |
是 |
|
|
| description |
科目描述 |
string |
否 |
|
|
-
响应数据参数
| 参数名 |
参数 |
数据类型 |
示例值 |
说明 |
| id |
科目id |
int |
|
|
| pid |
上级科目ID |
int |
|
|
| sort |
排序 |
int |
|
|
| title |
科目名称 |
string |
|
|
| alias |
科目别名 |
string |
|
科目别名重要,在业务实现时代指科目用 |
| description |
科目描述 |
string |
|
|
-
请求示例
请求例子:
apirq('accountsubject', {
method: "post",
data: {
"pid": 3,
"title": "测试账户科目",
"alias": "cskmts"
}
})
返回数据结果:
{
"code": 0,
"msg": "数据添加成功!",
"time": "1524651351",
"data": {
"id": 34,
"pid": 3,
"sort": 10,
"title": "测试账户科目",
"alias": "cskmts",
"description": null
}
}