获取预算科目
接口:/budget/account
Method:GET
数据格式:JSON
请求参数:N/A
返回数据:
字段 | 类型 | 描述 |
---|---|---|
code | String | 预算科目编码(唯一主键) |
name | String | 预算科目名称 |
businessCode | String | 预算科目业务编码 |
level | int | 预算科目级数,0代表一级科目,1代表二级科目,2代表三级科目 |
parentCode | String | 上级预算科目 |
enabled | Boolean | 是否启用 |
budgetPeriod | String | 预算周期,YEAR表示每年,HALF_YEAR表示每半年,QUARTER表示每季度,MONTH表示每月 |
description | String | 预算科目描述 |
carryDown | Boolean | 是否结转 |
返回示例:
{ "code":"ACK", "message":"message.success", "data":[ { "code":"BGTA170220X6SSTFK", "name":"一级科目1", "businessCode":"BGTA170220X6SSTFK", "level":0, "parentCode":"", "enabled":true, "budgetPeriod":"HALF_YEAR", "description":"", "carryDown":false, "leaf":false }, { "code":"BGTA170220XE53SHS", "name":"二级科目1", "businessCode":"BGTA170220XE53SHS", "level":1, "parentCode":"BGTA170220X6SSTFK", "enabled":true, "budgetPeriod":"HALF_YEAR", "description":"", "carryDown":false, "leaf":false }, { "code":"BGTA170220XM691XC", "name":"三级科目1", "businessCode":"BGTA170220XM691XC", "level":2, "parentCode":"BGTA170220XE53SHS", "enabled":true, "budgetPeriod":"HALF_YEAR", "description":"", "carryDown":false, "leaf":true } ], "args":null, "linkDetail":false, "nonBizError":false }