修改用户信息 分享链接

作者:王怡栋 最后编辑:宋辰轩 于 2022-07-06 10:02:43 浏览量:5470
PUT
/users/:id

修改用户信息

请求头

名称 类型 必填 描述
Token String 认证凭证

请求体

名称 类型 必填 描述
dept int 所属部门
role string 角色
mobile string 手机号
realname string 真实姓名
email string 邮箱
phone string 电话号码

请求示例

{
    "realname": "管理员"
}

请求响应

名称 类型 必填 描述
id int 用户编号
type string 类型(inside 内部用户 | outside 外部用户)
dept int 所属部门
account string 用户名
role string 角色
realname string 真实姓名
nickname string 昵称
avatar string 头像
birthday date 生日
gender string 性别(f 女性 | m 男性)
email string 邮箱
mobile string 手机号
phone string 电话号
weixin string 微信号
join date 加入日期

响应示例

{
    "id": 2,
    "company": 0,
    "type": "inside",
    "dept": 5,
    "account": "productManager",
    "role": "po",
    "realname": "产品经理",
    "nickname": "",
    "commiter": "",
    "avatar": "",
    "birthday": "0000-00-00",
    "gender": "m",
    "email": "",
    "skype": "",
    "qq": "",
    "mobile": "",
    "phone": "",
    "weixin": "",
    "dingding": "",
    "slack": "",
    "whatsapp": "",
    "address": "",
    "zipcode": "",
    "nature": "",
    "analysis": "",
    "strategy": "",
    "join": "0000-00-00",
    "visits": 3,
    "ip": "192.168.0.8",
    "last": "2012-06-05 11:14:43",
    "fails": 0,
    "locked": "0000-00-00 00:00:00",
    "ranzhi": "",
    "score": 0,
    "scoreLevel": 0,
    "deleted": "0"
}