文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取用户可选的组织列表
更新时间:2018-04-13 13:18:30   更新人员:叶洋   文档状态:完成 #97    测试接口
摘要
获取用户可选的组织列表,用于添加新部门时表单内选择下拉归属组织时用。
  1. 接口基本信息
    接口名称:获取用户可选的组织列表
    请求方法:GET
    接口地址:department/ascriptions
    登录验证:是
  2. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    orgid 组织id string
    code 组织代码 string
    name 组织名 string
    status 组织状态 string
    type 组织类型 string 组织类型:1系统2商户3机构4网点
    type_name 类型名 string
  3. 请求示例
    请求例子:
     
    apirq('department/ascriptions') 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1523596465",
        "data": [
            {
                "orgid": "1000000000000000",
                "code": "S100000000",
                "name": "系统safd",
                "status": 1,
                "type": 1,
                "type_name": "系统"
            },
            // ...
            {
                "orgid": "05d48fa8743570b0",
                "code": "C57732",
                "name": "天天向上2",
                "status": 1,
                "type": 3,
                "type_name": "机构"
            },
            {
                "orgid": "1000000000000000",
                "code": "C00001",
                "name": "内建机构",
                "status": 1,
                "type": 3,
                "type_name": "机构"
            },
            {
                "orgid": "17c948c2d66a9ba5",
                "code": "C46221",
                "name": "测试一个机33构",
                "status": 1,
                "type": 3,
                "type_name": "机构"
            },
            // ....
            {
                "orgid": "dc332415f1c87f9b",
                "code": "C38086",
                "name": "杨天天",
                "status": 1,
                "type": 3,
                "type_name": "机构"
            },
            {
                "orgid": "1000000000000000",
                "code": "N00001",
                "name": "内建网点",
                "status": 1,
                "type": 4,
                "type_name": "网点"
            },
            // ....
        ]
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员