文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取登录用户所在组织的职位列表
更新时间:2018-04-13 14:04:42   更新人员:叶洋   文档状态:完成 #103    测试接口
摘要
获取登录用户所在组织的职位列表
  1. 接口基本信息
    接口名称:获取登录用户所在组织的职位列表
    请求方法:GET
    接口地址:position/lgposi
    登录验证:是
  2. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id 职位id int
    dpmt_id 所属部门id int
    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
    status 状态 string 启用状态 1正常 0禁用
    bandel 系统标准 string 系统标准 禁止删除
    name 职位名称 string
    description 职位描述 string
    dpinfo{} 所属部门信息 object
    ├ id ├ 所属部门id string
    ├ dp_type ├ 所属部门所属组织类型 string
    ├ dp_id ├ 所属部门所属组织id string
    ├ pid ├ 所属部门的上级部门 int
    ├ status ├ 所属部门状态 int
    ├ name ├ 所属部门名称 string
    └ description └ 所属部门描述 string
  3. 请求示例
    请求例子:
     
    apirq('position/lgposi') 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1523598660",
        "data": {
            "page": 1,
            "row": 15,
            "count": 6,
            "total_count": 6,
            "total_page": 1,
            "lists": [
                {
                    "id": 1,
                    "dpmt_id": 1,
                    "create_time": "2017-12-11 16:21:05",
                    "create_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "update_time": "2018-03-20 17:36:17",
                    "update_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "status": 1,
                    "bandel": 1,
                    "name": "系统管理员",
                    "description": "系统管理员",
                    "dpinfo": {
                        "id": 1,
                        "dp_type": 1,
                        "dp_id": "1000000000000000",
                        "pid": 0,
                        "status": 1,
                        "bandel": 1,
                        "create_time": "2017-12-11 16:15:43",
                        "create_by": "0000000000000001",
                        "update_time": "2017-12-11 16:15:43",
                        "update_by": "0000000000000001",
                        "name": "管理部",
                        "description": "系统管理部门"
                    }
                },
                {
                    "id": 2,
                    "dpmt_id": 2,
                    "create_time": "2017-12-11 16:21:05",
                    "create_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "update_time": "2017-12-11 16:21:05",
                    "update_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "status": 1,
                    "bandel": 1,
                    "name": "系统财务员",
                    "description": "系统内建财务员",
                    "dpinfo": {
                        "id": 2,
                        "dp_type": 1,
                        "dp_id": "1000000000000000",
                        "pid": 0,
                        "status": 1,
                        "bandel": 1,
                        "create_time": "2017-12-11 16:15:43",
                        "create_by": "0000000000000001",
                        "update_time": "2017-12-11 16:15:43",
                        "update_by": "0000000000000001",
                        "name": "财务部",
                        "description": "系统财务部门"
                    }
                },
                {
                    "id": 3,
                    "dpmt_id": 3,
                    "create_time": "2017-12-11 16:21:05",
                    "create_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "update_time": "2017-12-11 16:21:05",
                    "update_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "status": 1,
                    "bandel": 1,
                    "name": "系统运营员",
                    "description": "系统内建运营员",
                    "dpinfo": {
                        "id": 3,
                        "dp_type": 1,
                        "dp_id": "1000000000000000",
                        "pid": 0,
                        "status": 1,
                        "bandel": 1,
                        "create_time": "2017-12-11 16:15:43",
                        "create_by": "0000000000000001",
                        "update_time": "2018-03-22 15:51:14",
                        "update_by": "0000000000000001",
                        "name": "运营部",
                        "description": "系统运营部门"
                    }
                },
                {
                    "id": 22,
                    "dpmt_id": 3,
                    "create_time": "2018-03-26 14:31:16",
                    "create_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "update_time": "2018-03-26 14:31:16",
                    "update_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "status": 1,
                    "bandel": 0,
                    "name": "asdf",
                    "description": "asdf",
                    "dpinfo": {
                        "id": 3,
                        "dp_type": 1,
                        "dp_id": "1000000000000000",
                        "pid": 0,
                        "status": 1,
                        "bandel": 1,
                        "create_time": "2017-12-11 16:15:43",
                        "create_by": "0000000000000001",
                        "update_time": "2018-03-22 15:51:14",
                        "update_by": "0000000000000001",
                        "name": "运营部",
                        "description": "系统运营部门"
                    }
                },
                {
                    "id": 23,
                    "dpmt_id": 3,
                    "create_time": "2018-03-26 14:39:04",
                    "create_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "update_time": "2018-03-26 14:39:04",
                    "update_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "status": 1,
                    "bandel": 0,
                    "name": "asfvvv",
                    "description": "sss",
                    "dpinfo": {
                        "id": 3,
                        "dp_type": 1,
                        "dp_id": "1000000000000000",
                        "pid": 0,
                        "status": 1,
                        "bandel": 1,
                        "create_time": "2017-12-11 16:15:43",
                        "create_by": "0000000000000001",
                        "update_time": "2018-03-22 15:51:14",
                        "update_by": "0000000000000001",
                        "name": "运营部",
                        "description": "系统运营部门"
                    }
                },
                {
                    "id": 24,
                    "dpmt_id": 3,
                    "create_time": "2018-03-26 14:39:25",
                    "create_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "update_time": "2018-03-26 14:39:25",
                    "update_by": {
                        "uid": "0000000000000001",
                        "code": "U1000000",
                        "username": "administrator",
                        "nickname": "超级管理员",
                        "realname": "超级管理员"
                    },
                    "status": 1,
                    "bandel": 0,
                    "name": "safbb",
                    "description": "xxx",
                    "dpinfo": {
                        "id": 3,
                        "dp_type": 1,
                        "dp_id": "1000000000000000",
                        "pid": 0,
                        "status": 1,
                        "bandel": 1,
                        "create_time": "2017-12-11 16:15:43",
                        "create_by": "0000000000000001",
                        "update_time": "2018-03-22 15:51:14",
                        "update_by": "0000000000000001",
                        "name": "运营部",
                        "description": "系统运营部门"
                    }
                }
            ]
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员