文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取登录用户所在组织的部门列表
更新时间:2018-04-13 13:03:15   更新人员:叶洋   文档状态:完成 #95    测试接口
摘要
获取登录用户所在组织的部门列表
  1. 接口基本信息
    接口名称:获取登录用户所在组织的部门列表
    请求方法:GET
    接口地址:department/lgdpts
    登录验证:是
  2. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id 部门id int
    otype 归属组织类别 int 组织类型1系统平台2商户3机构4网点
    linkid 对应组织id string
    pid 上级部门 int
    status 部门状态 int 部门状态,1正常0禁用
    builtin 系统标准 string 系统标准,禁止删除
    create_time 创建时间 string
    create_by{} 创建人信息 object
    ├ uid ├ 创建人uid string
    ├ code ├ 创建人编码 string
    ├ username ├ 创建人用户名 string
    ├ nickname ├ 创建人昵称 string
    └ realname └ 创建人真实姓名 string
    update_time 更新时间 string
    update_by{} 更新人信息 object
    ├ uid ├ 更新人uid string
    ├ code ├ 更新人代码 string
    ├ username ├ 更新人用户名 string
    ├ nickname ├ 更新人昵称 string
    └ realname └ 更新人真实姓名 string
    name 部门名称 string
    description 描述 string
    orginfo{} 对应组织信息 object
    ├ ***_id ├ 对应组织id string 如果是系统则为sys_id,机构为com_id,网点为net_id
    ├ code ├ 组织代码 string
    ├ name ├ 对应组织名称 string
    ├ contacts ├ 对应组织联系人 string
    ├ mobile ├ 组织联系人手机 string
    ├ email ├ 组织邮箱 string
    └ otype_name └ 组织类型标记 string
  3. 请求示例
    请求例子:
     
    apirq('department/lgdpts') 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1523595210",
        "data": {
            "page": 1,
            "row": 15,
            "count": 3,
            "total_count": 3,
            "total_page": 1,
            "lists": [
                {
                    "id": 1,
                    "dp_type": 1,
                    "dp_id": "1000000000000000",
                    "pid": 0,
                    "status": 1,
                    "bandel": 1,
                    "create_time": "2017-12-11 16:15:43",
                    "create_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "update_time": "2017-12-11 16:15:43",
                    "update_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "name": "管理部",
                    "description": "系统管理部门",
                    "orginfo": {
                        "sys_id": "1000000000000000",
                        "code": "S100000000",
                        "country_id": 1,
                        "province_id": 2,
                        "city_id": 2,
                        "district_id": 3,
                        "street_id": 1,
                        "lng": "2.000000",
                        "lat": "3.000000",
                        "name": "系统safd",
                        "initials": "xt",
                        "english_name": "system",
                        "address": "成都",
                        "contacts": "小小",
                        "mobile": "13412345678",
                        "tel": "",
                        "fax": "",
                        "email": "asdf@s.com",
                        "cover": "",
                        "picture_list": "",
                        "img_business_license": "",
                        "img_transport_license": "",
                        "img_corporation_idcard": "",
                        "description": "平台系统",
                        "remark": "",
                        "otype_name": "系统"
                    }
                },
                {
                    "id": 2,
                    "dp_type": 1,
                    "dp_id": "1000000000000000",
                    "pid": 0,
                    "status": 1,
                    "bandel": 1,
                    "create_time": "2017-12-11 16:15:43",
                    "create_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "update_time": "2017-12-11 16:15:43",
                    "update_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "name": "财务部",
                    "description": "系统财务部门",
                    "orginfo": {
                        "sys_id": "1000000000000000",
                        "code": "S100000000",
                        "country_id": 1,
                        "province_id": 2,
                        "city_id": 2,
                        "district_id": 3,
                        "street_id": 1,
                        "lng": "2.000000",
                        "lat": "3.000000",
                        "name": "系统safd",
                        "initials": "xt",
                        "english_name": "system",
                        "address": "成都",
                        "contacts": "小小",
                        "mobile": "13412345678",
                        "tel": "",
                        "fax": "",
                        "email": "asdf@s.com",
                        "cover": "",
                        "picture_list": "",
                        "img_business_license": "",
                        "img_transport_license": "",
                        "img_corporation_idcard": "",
                        "description": "平台系统",
                        "remark": "",
                        "otype_name": "系统"
                    }
                },
                {
                    "id": 3,
                    "dp_type": 1,
                    "dp_id": "1000000000000000",
                    "pid": 0,
                    "status": 1,
                    "bandel": 1,
                    "create_time": "2017-12-11 16:15:43",
                    "create_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "update_time": "2018-03-22 15:51:14",
                    "update_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "name": "运营部",
                    "description": "系统运营部门",
                    "orginfo": {
                        "sys_id": "1000000000000000",
                        "code": "S100000000",
                        "country_id": 1,
                        "province_id": 2,
                        "city_id": 2,
                        "district_id": 3,
                        "street_id": 1,
                        "lng": "2.000000",
                        "lat": "3.000000",
                        "name": "系统safd",
                        "initials": "xt",
                        "english_name": "system",
                        "address": "成都",
                        "contacts": "小小",
                        "mobile": "13412345678",
                        "tel": "",
                        "fax": "",
                        "email": "asdf@s.com",
                        "cover": "",
                        "picture_list": "",
                        "img_business_license": "",
                        "img_transport_license": "",
                        "img_corporation_idcard": "",
                        "description": "平台系统",
                        "remark": "",
                        "otype_name": "系统"
                    }
                }
            ]
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员