创建用户 分享链接

最后编辑:宋辰轩 于 2022-07-06 10:41:21
POST
/users

创建用户

请求头

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

请求体

名称 类型 必填 描述
account
string 账号
password
string 密码
realname
string
真实姓名
visions
array
界面 [“rnd”, “lite”],(综合研发界面 rnd, 迅捷界面 lite)。默认是rnd

请求示例

{"account": "usertest", "password": "123qwe!@#", "realname": "测试用户"}

请求响应

名称 类型 必填 描述
id int 用户id
account string 登陆名
type string 内部用户 inside, 外部用户 outside
gender
string f 女性, m 男性
dept int 部门ID
string string

真实姓名

响应示例

{
    "id": 8,
    "company": 0,
    "type": "inside",
    "dept": 0,
    "account": "usertest",
    "role": "",
    "realname": "测试用户",
    "pinyin": "",
    "nickname": "",
    "commiter": "",
    "avatar": "",
    "birthday": "0000-00-00",
    "gender": "f",
    "email": "",
    "skype": "",
    "qq": "",
    "mobile": "",
    "phone": "",
    "weixin": "",
    "dingding": "",
    "slack": "",
    "whatsapp": "",
    "address": "",
    "zipcode": "",
    "nature": "",
    "analysis": "",
    "strategy": "",
    "join": "0000-00-00",
    "visits": 0,
    "visions": "rnd",
    "ip": "",
    "last": "1970-01-01T00:00:00Z",
    "fails": 0,
    "locked": null,
    "feedback": "0",
    "ranzhi": "",
    "ldap": "",
    "score": 0,
    "scoreLevel": 0,
    "deleted": "0",
    "clientStatus": "offline",
    "clientLang": "zh-cn"
}
宋辰轩 1468