文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
添加一个新的账务科目
更新时间:2018-04-25 18:42:34   更新人员:叶洋   文档状态:完成 #246    测试接口
摘要
添加一个新的账务科目
  1. 接口基本信息
    接口名称:添加一个新的帐务科目
    请求方法:POST
    接口地址:accountsubject
    登录验证:是
  2. 请求参数
    参数名 参数 数据类型 是否必须 示例值 说明
    pid 上级科目ID int
    sort 排序序号 int
    title 科目名称 string
    alias 科目别名 string
    description 科目描述 string
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id 科目id int
    pid 上级科目ID int
    sort 排序 int
    title 科目名称 string
    alias 科目别名 string 科目别名重要,在业务实现时代指科目用
    description 科目描述 string
  4. 请求示例
    请求例子:
     
    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
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员