文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
为指定机构添加新成员
更新时间:2018-04-16 11:26:12   更新人员:叶洋   文档状态:完成 #125    测试接口
摘要
为指定机构添加新成员
  1. 接口基本信息
    接口名称:添加新的机构成员
    请求方法:POST
    接口地址:user/cp
    登录验证:是
  2. 请求参数
    参数名 参数 数据类型 是否必须 示例值 说明
    orgid 所属机构id string
    username 用户名 string 用户登录名,常用英文
    password 用户密码 string 用户密码,先使用md5加密一次再传送
    nickname 昵称 string
    realname 真实姓名 string
    sex 性别 int 1 用户性别 1男 0女
    email 电子邮箱 string 电子邮箱可用于接收验证码及其它系统通知
    mobile 手机号 string 手机号码必须填
    tel 座机 string
    invite_code_from 通过邀请码注册 string
    qq QQ号码 string
    remark 备注信息 string
    head 头像图片id string
    rpwd 重复密码 string
    birthday 生日 string 2011-03-17
    position 职位id int
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    uid 用户uid string
    code 用户编码 string
    utype 用户类型 int
    username 用户名 string
    realname 真实姓名 string
    nickname 昵称 string
    sex 性别 int
    mobile 手机号码 string
    email 邮箱 string
    invite_code 邀请码 string
    reg_time 注册时间 string
  4. 请求示例
    请求例子:
     
    apirq('user/cp', {
        method: "post",
        data: {
            "orgid": "dc332415f1c87f9b",
            "username": "ccce",
            "password": "1911d360df8a19eae094120b80041baa",
            "realname": "小功s承",
            "sex": 1,
            "email": "one-asdf@aa.com",
            "mobile": "132136548",
            "rpwd": "1911d360df8a19eae094120b80041baa"
        }
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "用户注册成功!",
        "time": "1523847190",
        "data": {
            "uid": "156b023f70dccf72",
            "code": "U6954589",
            "utype": 3,
            "username": "ccce",
            "realname": "小功s承",
            "nickname": "",
            "sex": 1,
            "mobile": "132136548",
            "email": "one-asdf@aa.com",
            "invite_code": "017089A1",
            "reg_time": "2018-04-16 10:53:11"
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员