文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
为指定部门添加新职位
更新时间:2018-04-13 14:15:04   更新人员:叶洋   文档状态:完成 #106    测试接口
摘要
为指定部门添加新职位
  1. 接口基本信息
    接口名称:添加一个职位
    请求方法:POST
    接口地址:position
    登录验证:是
  2. 请求参数
    参数名 参数 数据类型 是否必须 示例值 说明
    dept_id 所属部门id int
    name 职位名称 string
    description 职位描述 string
    tag 职位标识 string
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id 职位id int
    dept_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
    ├ otype ├ 所属部门所属组织类型 string
    ├ linkid ├ 所属部门所属组织id string
    ├ pid ├ 所属部门的上级部门 int
    ├ status ├ 所属部门状态 int
    ├ name ├ 所属部门名称 string
    └ description └ 所属部门描述 string
  4. 请求示例
    请求例子:
     
    apirq('position', {
        method: "post",
        data: {
            "dpmt_id": 61,
            "name": "添加测试新职位"
        }
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "数据添加成功!",
        "time": "1523600022",
        "data": {
            "id": 69,
            "dpmt_id": 61,
            "create_time": "2018-04-13 14:13:42",
            "create_by": {
                "uid": "0000000000000001",
                "code": "U1000000",
                "username": "administrator",
                "nickname": "超级管理员",
                "realname": "超级管理员"
            },
            "update_time": "2018-04-13 14:13:42",
            "update_by": {
                "uid": "0000000000000001",
                "code": "U1000000",
                "username": "administrator",
                "nickname": "超级管理员",
                "realname": "超级管理员"
            },
            "status": 1,
            "bandel": 0,
            "name": "添加测试新职位",
            "description": "",
            "dpinfo": {
                "id": 61,
                "dp_type": 4,
                "dp_id": "1e23852bfc7ec92a",
                "pid": 0,
                "status": 1,
                "bandel": 0,
                "create_time": "2018-04-13 11:27:51",
                "create_by": "0000000000000001",
                "update_time": "2018-04-13 11:27:51",
                "update_by": "0000000000000001",
                "name": "运营部",
                "description": "测试一个网点网点运营部门"
            }
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员