文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取账务科目列表
更新时间:2018-04-25 18:13:37   更新人员:叶洋   文档状态:完成 #245    测试接口
摘要
获取账务科目列表
  1. 接口基本信息
    接口名称:获取帐务科目列表
    请求方法:GET
    接口地址:accountsubject
    登录验证:是
  2. 请求参数
    参数名 参数 数据类型 是否必须 示例值 说明
    page 分页数 int
    row 每页数据量 int 默认15
    pid 上级科目 int 通过上级科目id值查询列表
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id 科目id int
    pid 上级科目ID int
    sort 排序 int
    title 科目名称 string
    alias 科目别名 string 科目别名重要,在业务实现时代指科目用
    description 科目描述 string
    aliaskey 别名key值 int 0
    desctpl_inflow 流入描述模板 string
    desctpl_outflow 流出描述模板 string
    desctpl_advection 内流描述模板 string
  4. 请求示例
    请求例子:
     
    apirq('accountsubject', {
        data: {
            "row": 3
        }
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1524651185",
        "data": {
            "page": 1,
            "row": 3,
            "count": 3,
            "total_count": 32,
            "total_page": 11,
            "lists": [
                {
                    "id": 1,
                    "pid": 0,
                    "sort": 10,
                    "title": "现金存取",
                    "alias": "cashflow",
                    "description": "记录帐户充值与提现,帐户的资金流向为外部银行平台"
                },
                {
                    "id": 2,
                    "pid": 1,
                    "sort": 10,
                    "title": "充值",
                    "alias": "recharge",
                    "description": "帐户通过网银或充值到帐户"
                },
                {
                    "id": 3,
                    "pid": 1,
                    "sort": 10,
                    "title": "提现",
                    "alias": "withdraw",
                    "description": "帐户从可用余额中提现小于余额的资金到帐户银行卡上"
                }
            ]
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员