14. 【公共】注册登录相关接口

14.1. 带密码检测邮箱(密码验证,格式校验,邀请码验证,重名检测,发送验证码)

Type: POST

Author: Timothy

Content-Type: application/json

Description: 带密码检测邮箱(密码验证,格式校验,邀请码验证,重名检测,发送验证码)

Body-parameters:

Parameter Type Description Required Since

id

int32

ID

false

-

username

string

用户名
Validation[Size(max=12, message=用户名要求最多 {max} 位) ]

false

-

email

string

E-mail
Validation[Email(message=邮箱格式不正确) ]

false

-

phone

string

电话
Validation[Pattern(regexp=^1[3-9]\d{9}$, message=手机号格式不正确) ]

false

-

password

string

密码

false

-

password1

string

用户填写密码

false

-

password2

string

用户确认密码

false

-

nickname

string

用户昵称
Validation[Size(min=2, max=12, message=昵称位数要求在 {min} 和 {max} 之间) ]

false

-

realname

string

姓名

false

-

roleId

int32

角色ID

false

-

roleTitle

string

角色头衔

false

-

corpId

int32

所在公司ID

false

-

corpName

string

所在公司名称

false

-

deptId

int32

部门ID

false

-

deptName

string

部门名称

false

-

gender

int32

性别【0=女,1=男】

false

-

avatar

string

头像

false

-

birthday

string

生日
Validation[Past(message=你是从未来穿越回来的吗:)) ]

false

-

qq

string

QQ

false

-

major

string

专业

false

-

university

string

毕业院校

false

-

assignee

string

委托人身份(用于流程)

false

-

address

string

住址

false

-

introduce

string

自我简介

false

-

code

string

各种码

false

-

invateId

int32

邀请人ID

false

-

invateUsername

string

邀请人用户名(注册时临时邀请码)

false

-

invateNickname

string

邀请人昵称

false

-

expiration

string

激活有效期 | 帐号有效期

false

-

state

int32

激活状态【-1=已禁用,0=已锁定,1=注册会员,2=VIP会员】(好友中代指关系状态)

false

-

alias

string

朋友别名(备注)

false

-

greeting

string

请求问候语(关系属性)

false

-

lastDate

string

上次登录时间

false

-

lastIp

string

上次登录IP

false

-

lastAddress

string

上次登录IP位置鉴定

false

-

createDate

string

注册时间

false

-

updateDate

string

更新时间

false

-

push

int32

消息推送

false

-

alert

int32

声音提醒

false

-

Request-example:

curl -X POST -H "Content-Type: application/json" -i '/registry/checkEmailPwd' --data '{
  "id": 0,
  "username": "",
  "email": "",
  "phone": "",
  "password": "",
  "password1": "",
  "password2": "",
  "nickname": "",
  "realname": "",
  "roleId": 0,
  "roleTitle": "",
  "corpId": 0,
  "corpName": "",
  "deptId": 0,
  "deptName": "",
  "gender": 0,
  "avatar": "",
  "birthday": "yyyy-MM-dd",
  "qq": "",
  "major": "",
  "university": "",
  "assignee": "",
  "address": "",
  "introduce": "",
  "code": "",
  "invateId": 0,
  "invateUsername": "",
  "invateNickname": "",
  "expiration": "yyyy-MM-dd HH:mm:ss",
  "state": 0,
  "alias": "",
  "greeting": "",
  "lastDate": "yyyy-MM-dd HH:mm:ss",
  "lastIp": "",
  "lastAddress": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss",
  "push": 0,
  "alert": 0
}'

14.2. 检测邮箱(格式校验,邀请码验证,重名检测,发送验证码)

Type: POST

Author: Timothy

Content-Type: application/json

Description: 检测邮箱(格式校验,邀请码验证,重名检测,发送验证码)

Body-parameters:

Parameter Type Description Required Since

id

int32

ID

false

-

username

string

用户名
Validation[Size(max=12, message=用户名要求最多 {max} 位) ]

false

-

email

string

E-mail
Validation[Email(message=邮箱格式不正确) ]

false

-

phone

string

电话
Validation[Pattern(regexp=^1[3-9]\d{9}$, message=手机号格式不正确) ]

false

-

password

string

密码

false

-

password1

string

用户填写密码

false

-

password2

string

用户确认密码

false

-

nickname

string

用户昵称
Validation[Size(min=2, max=12, message=昵称位数要求在 {min} 和 {max} 之间) ]

false

-

realname

string

姓名

false

-

roleId

int32

角色ID

false

-

roleTitle

string

角色头衔

false

-

corpId

int32

所在公司ID

false

-

corpName

string

所在公司名称

false

-

deptId

int32

部门ID

false

-

deptName

string

部门名称

false

-

gender

int32

性别【0=女,1=男】

false

-

avatar

string

头像

false

-

birthday

string

生日
Validation[Past(message=你是从未来穿越回来的吗:)) ]

false

-

qq

string

QQ

false

-

major

string

专业

false

-

university

string

毕业院校

false

-

assignee

string

委托人身份(用于流程)

false

-

address

string

住址

false

-

introduce

string

自我简介

false

-

code

string

各种码

false

-

invateId

int32

邀请人ID

false

-

invateUsername

string

邀请人用户名(注册时临时邀请码)

false

-

invateNickname

string

邀请人昵称

false

-

expiration

string

激活有效期 | 帐号有效期

false

-

state

int32

激活状态【-1=已禁用,0=已锁定,1=注册会员,2=VIP会员】(好友中代指关系状态)

false

-

alias

string

朋友别名(备注)

false

-

greeting

string

请求问候语(关系属性)

false

-

lastDate

string

上次登录时间

false

-

lastIp

string

上次登录IP

false

-

lastAddress

string

上次登录IP位置鉴定

false

-

createDate

string

注册时间

false

-

updateDate

string

更新时间

false

-

push

int32

消息推送

false

-

alert

int32

声音提醒

false

-

Request-example:

curl -X POST -H "Content-Type: application/json" -i '/registry/checkEmail' --data '{
  "id": 0,
  "username": "",
  "email": "",
  "phone": "",
  "password": "",
  "password1": "",
  "password2": "",
  "nickname": "",
  "realname": "",
  "roleId": 0,
  "roleTitle": "",
  "corpId": 0,
  "corpName": "",
  "deptId": 0,
  "deptName": "",
  "gender": 0,
  "avatar": "",
  "birthday": "yyyy-MM-dd",
  "qq": "",
  "major": "",
  "university": "",
  "assignee": "",
  "address": "",
  "introduce": "",
  "code": "",
  "invateId": 0,
  "invateUsername": "",
  "invateNickname": "",
  "expiration": "yyyy-MM-dd HH:mm:ss",
  "state": 0,
  "alias": "",
  "greeting": "",
  "lastDate": "yyyy-MM-dd HH:mm:ss",
  "lastIp": "",
  "lastAddress": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss",
  "push": 0,
  "alert": 0
}'

14.3. 带密码检测手机号(密码验证,格式校验,邀请码验证,重名检测,发送验证码)

Type: POST

Author: Timothy

Content-Type: application/json

Description: 带密码检测手机号(密码验证,格式校验,邀请码验证,重名检测,发送验证码)

Body-parameters:

Parameter Type Description Required Since

id

int32

ID

false

-

username

string

用户名
Validation[Size(max=12, message=用户名要求最多 {max} 位) ]

false

-

email

string

E-mail
Validation[Email(message=邮箱格式不正确) ]

false

-

phone

string

电话
Validation[Pattern(regexp=^1[3-9]\d{9}$, message=手机号格式不正确) ]

false

-

password

string

密码

false

-

password1

string

用户填写密码

false

-

password2

string

用户确认密码

false

-

nickname

string

用户昵称
Validation[Size(min=2, max=12, message=昵称位数要求在 {min} 和 {max} 之间) ]

false

-

realname

string

姓名

false

-

roleId

int32

角色ID

false

-

roleTitle

string

角色头衔

false

-

corpId

int32

所在公司ID

false

-

corpName

string

所在公司名称

false

-

deptId

int32

部门ID

false

-

deptName

string

部门名称

false

-

gender

int32

性别【0=女,1=男】

false

-

avatar

string

头像

false

-

birthday

string

生日
Validation[Past(message=你是从未来穿越回来的吗:)) ]

false

-

qq

string

QQ

false

-

major

string

专业

false

-

university

string

毕业院校

false

-

assignee

string

委托人身份(用于流程)

false

-

address

string

住址

false

-

introduce

string

自我简介

false

-

code

string

各种码

false

-

invateId

int32

邀请人ID

false

-

invateUsername

string

邀请人用户名(注册时临时邀请码)

false

-

invateNickname

string

邀请人昵称

false

-

expiration

string

激活有效期 | 帐号有效期

false

-

state

int32

激活状态【-1=已禁用,0=已锁定,1=注册会员,2=VIP会员】(好友中代指关系状态)

false

-

alias

string

朋友别名(备注)

false

-

greeting

string

请求问候语(关系属性)

false

-

lastDate

string

上次登录时间

false

-

lastIp

string

上次登录IP

false

-

lastAddress

string

上次登录IP位置鉴定

false

-

createDate

string

注册时间

false

-

updateDate

string

更新时间

false

-

push

int32

消息推送

false

-

alert

int32

声音提醒

false

-

Request-example:

curl -X POST -H "Content-Type: application/json" -i '/registry/checkPhonePwd' --data '{
  "id": 0,
  "username": "",
  "email": "",
  "phone": "",
  "password": "",
  "password1": "",
  "password2": "",
  "nickname": "",
  "realname": "",
  "roleId": 0,
  "roleTitle": "",
  "corpId": 0,
  "corpName": "",
  "deptId": 0,
  "deptName": "",
  "gender": 0,
  "avatar": "",
  "birthday": "yyyy-MM-dd",
  "qq": "",
  "major": "",
  "university": "",
  "assignee": "",
  "address": "",
  "introduce": "",
  "code": "",
  "invateId": 0,
  "invateUsername": "",
  "invateNickname": "",
  "expiration": "yyyy-MM-dd HH:mm:ss",
  "state": 0,
  "alias": "",
  "greeting": "",
  "lastDate": "yyyy-MM-dd HH:mm:ss",
  "lastIp": "",
  "lastAddress": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss",
  "push": 0,
  "alert": 0
}'

14.4. 检测手机号(格式校验,邀请码验证,重名检测,发送验证码)

Type: POST

Author: Timothy

Content-Type: application/json

Description: 检测手机号(格式校验,邀请码验证,重名检测,发送验证码)

Body-parameters:

Parameter Type Description Required Since

id

int32

ID

false

-

username

string

用户名
Validation[Size(max=12, message=用户名要求最多 {max} 位) ]

false

-

email

string

E-mail
Validation[Email(message=邮箱格式不正确) ]

false

-

phone

string

电话
Validation[Pattern(regexp=^1[3-9]\d{9}$, message=手机号格式不正确) ]

false

-

password

string

密码

false

-

password1

string

用户填写密码

false

-

password2

string

用户确认密码

false

-

nickname

string

用户昵称
Validation[Size(min=2, max=12, message=昵称位数要求在 {min} 和 {max} 之间) ]

false

-

realname

string

姓名

false

-

roleId

int32

角色ID

false

-

roleTitle

string

角色头衔

false

-

corpId

int32

所在公司ID

false

-

corpName

string

所在公司名称

false

-

deptId

int32

部门ID

false

-

deptName

string

部门名称

false

-

gender

int32

性别【0=女,1=男】

false

-

avatar

string

头像

false

-

birthday

string

生日
Validation[Past(message=你是从未来穿越回来的吗:)) ]

false

-

qq

string

QQ

false

-

major

string

专业

false

-

university

string

毕业院校

false

-

assignee

string

委托人身份(用于流程)

false

-

address

string

住址

false

-

introduce

string

自我简介

false

-

code

string

各种码

false

-

invateId

int32

邀请人ID

false

-

invateUsername

string

邀请人用户名(注册时临时邀请码)

false

-

invateNickname

string

邀请人昵称

false

-

expiration

string

激活有效期 | 帐号有效期

false

-

state

int32

激活状态【-1=已禁用,0=已锁定,1=注册会员,2=VIP会员】(好友中代指关系状态)

false

-

alias

string

朋友别名(备注)

false

-

greeting

string

请求问候语(关系属性)

false

-

lastDate

string

上次登录时间

false

-

lastIp

string

上次登录IP

false

-

lastAddress

string

上次登录IP位置鉴定

false

-

createDate

string

注册时间

false

-

updateDate

string

更新时间

false

-

push

int32

消息推送

false

-

alert

int32

声音提醒

false

-

Request-example:

curl -X POST -H "Content-Type: application/json" -i '/registry/checkPhone' --data '{
  "id": 0,
  "username": "",
  "email": "",
  "phone": "",
  "password": "",
  "password1": "",
  "password2": "",
  "nickname": "",
  "realname": "",
  "roleId": 0,
  "roleTitle": "",
  "corpId": 0,
  "corpName": "",
  "deptId": 0,
  "deptName": "",
  "gender": 0,
  "avatar": "",
  "birthday": "yyyy-MM-dd",
  "qq": "",
  "major": "",
  "university": "",
  "assignee": "",
  "address": "",
  "introduce": "",
  "code": "",
  "invateId": 0,
  "invateUsername": "",
  "invateNickname": "",
  "expiration": "yyyy-MM-dd HH:mm:ss",
  "state": 0,
  "alias": "",
  "greeting": "",
  "lastDate": "yyyy-MM-dd HH:mm:ss",
  "lastIp": "",
  "lastAddress": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss",
  "push": 0,
  "alert": 0
}'

14.5. 验证邮箱验证码(参数:email,code)

Type: POST

Author: Timothy

Content-Type: application/json

Description: 验证邮箱验证码(参数:email,code)

Body-parameters:

Parameter Type Description Required Since

id

int32

ID

false

-

username

string

用户名
Validation[Size(max=12, message=用户名要求最多 {max} 位) ]

false

-

email

string

E-mail
Validation[Email(message=邮箱格式不正确) ]

false

-

phone

string

电话
Validation[Pattern(regexp=^1[3-9]\d{9}$, message=手机号格式不正确) ]

false

-

password

string

密码

false

-

password1

string

用户填写密码

false

-

password2

string

用户确认密码

false

-

nickname

string

用户昵称
Validation[Size(min=2, max=12, message=昵称位数要求在 {min} 和 {max} 之间) ]

false

-

realname

string

姓名

false

-

roleId

int32

角色ID

false

-

roleTitle

string

角色头衔

false

-

corpId

int32

所在公司ID

false

-

corpName

string

所在公司名称

false

-

deptId

int32

部门ID

false

-

deptName

string

部门名称

false

-

gender

int32

性别【0=女,1=男】

false

-

avatar

string

头像

false

-

birthday

string

生日
Validation[Past(message=你是从未来穿越回来的吗:)) ]

false

-

qq

string

QQ

false

-

major

string

专业

false

-

university

string

毕业院校

false

-

assignee

string

委托人身份(用于流程)

false

-

address

string

住址

false

-

introduce

string

自我简介

false

-

code

string

各种码

false

-

invateId

int32

邀请人ID

false

-

invateUsername

string

邀请人用户名(注册时临时邀请码)

false

-

invateNickname

string

邀请人昵称

false

-

expiration

string

激活有效期 | 帐号有效期

false

-

state

int32

激活状态【-1=已禁用,0=已锁定,1=注册会员,2=VIP会员】(好友中代指关系状态)

false

-

alias

string

朋友别名(备注)

false

-

greeting

string

请求问候语(关系属性)

false

-

lastDate

string

上次登录时间

false

-

lastIp

string

上次登录IP

false

-

lastAddress

string

上次登录IP位置鉴定

false

-

createDate

string

注册时间

false

-

updateDate

string

更新时间

false

-

push

int32

消息推送

false

-

alert

int32

声音提醒

false

-

Request-example:

curl -X POST -H "Content-Type: application/json" -i '/registry/verifyEmail' --data '{
  "id": 0,
  "username": "",
  "email": "",
  "phone": "",
  "password": "",
  "password1": "",
  "password2": "",
  "nickname": "",
  "realname": "",
  "roleId": 0,
  "roleTitle": "",
  "corpId": 0,
  "corpName": "",
  "deptId": 0,
  "deptName": "",
  "gender": 0,
  "avatar": "",
  "birthday": "yyyy-MM-dd",
  "qq": "",
  "major": "",
  "university": "",
  "assignee": "",
  "address": "",
  "introduce": "",
  "code": "",
  "invateId": 0,
  "invateUsername": "",
  "invateNickname": "",
  "expiration": "yyyy-MM-dd HH:mm:ss",
  "state": 0,
  "alias": "",
  "greeting": "",
  "lastDate": "yyyy-MM-dd HH:mm:ss",
  "lastIp": "",
  "lastAddress": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss",
  "push": 0,
  "alert": 0
}'

Response-example:

true

14.6. 验证短信验证码(参数:email,code)

Type: POST

Author: Timothy

Content-Type: application/json

Description: 验证短信验证码(参数:email,code)

Body-parameters:

Parameter Type Description Required Since

id

int32

ID

false

-

username

string

用户名
Validation[Size(max=12, message=用户名要求最多 {max} 位) ]

false

-

email

string

E-mail
Validation[Email(message=邮箱格式不正确) ]

false

-

phone

string

电话
Validation[Pattern(regexp=^1[3-9]\d{9}$, message=手机号格式不正确) ]

false

-

password

string

密码

false

-

password1

string

用户填写密码

false

-

password2

string

用户确认密码

false

-

nickname

string

用户昵称
Validation[Size(min=2, max=12, message=昵称位数要求在 {min} 和 {max} 之间) ]

false

-

realname

string

姓名

false

-

roleId

int32

角色ID

false

-

roleTitle

string

角色头衔

false

-

corpId

int32

所在公司ID

false

-

corpName

string

所在公司名称

false

-

deptId

int32

部门ID

false

-

deptName

string

部门名称

false

-

gender

int32

性别【0=女,1=男】

false

-

avatar

string

头像

false

-

birthday

string

生日
Validation[Past(message=你是从未来穿越回来的吗:)) ]

false

-

qq

string

QQ

false

-

major

string

专业

false

-

university

string

毕业院校

false

-

assignee

string

委托人身份(用于流程)

false

-

address

string

住址

false

-

introduce

string

自我简介

false

-

code

string

各种码

false

-

invateId

int32

邀请人ID

false

-

invateUsername

string

邀请人用户名(注册时临时邀请码)

false

-

invateNickname

string

邀请人昵称

false

-

expiration

string

激活有效期 | 帐号有效期

false

-

state

int32

激活状态【-1=已禁用,0=已锁定,1=注册会员,2=VIP会员】(好友中代指关系状态)

false

-

alias

string

朋友别名(备注)

false

-

greeting

string

请求问候语(关系属性)

false

-

lastDate

string

上次登录时间

false

-

lastIp

string

上次登录IP

false

-

lastAddress

string

上次登录IP位置鉴定

false

-

createDate

string

注册时间

false

-

updateDate

string

更新时间

false

-

push

int32

消息推送

false

-

alert

int32

声音提醒

false

-

Request-example:

curl -X POST -H "Content-Type: application/json" -i '/registry/verifyPhone' --data '{
  "id": 0,
  "username": "",
  "email": "",
  "phone": "",
  "password": "",
  "password1": "",
  "password2": "",
  "nickname": "",
  "realname": "",
  "roleId": 0,
  "roleTitle": "",
  "corpId": 0,
  "corpName": "",
  "deptId": 0,
  "deptName": "",
  "gender": 0,
  "avatar": "",
  "birthday": "yyyy-MM-dd",
  "qq": "",
  "major": "",
  "university": "",
  "assignee": "",
  "address": "",
  "introduce": "",
  "code": "",
  "invateId": 0,
  "invateUsername": "",
  "invateNickname": "",
  "expiration": "yyyy-MM-dd HH:mm:ss",
  "state": 0,
  "alias": "",
  "greeting": "",
  "lastDate": "yyyy-MM-dd HH:mm:ss",
  "lastIp": "",
  "lastAddress": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss",
  "push": 0,
  "alert": 0
}'

Response-example:

true

14.7. 保存用户注册信息

Type: PUT

Author: Timothy

Content-Type: application/json

Description: 保存用户注册信息

Body-parameters:

Parameter Type Description Required Since

id

int32

ID

false

-

username

string

用户名
Validation[Size(max=12, message=用户名要求最多 {max} 位) ]

false

-

email

string

E-mail
Validation[Email(message=邮箱格式不正确) ]

false

-

phone

string

电话
Validation[Pattern(regexp=^1[3-9]\d{9}$, message=手机号格式不正确) ]

false

-

password

string

密码

false

-

password1

string

用户填写密码

false

-

password2

string

用户确认密码

false

-

nickname

string

用户昵称
Validation[Size(min=2, max=12, message=昵称位数要求在 {min} 和 {max} 之间) ]

true

-

realname

string

姓名

false

-

roleId

int32

角色ID

false

-

roleTitle

string

角色头衔

false

-

corpId

int32

所在公司ID

false

-

corpName

string

所在公司名称

false

-

deptId

int32

部门ID

false

-

deptName

string

部门名称

false

-

gender

int32

性别【0=女,1=男】

false

-

avatar

string

头像

false

-

birthday

string

生日
Validation[Past(message=你是从未来穿越回来的吗:)) ]

false

-

qq

string

QQ

false

-

major

string

专业

false

-

university

string

毕业院校

false

-

assignee

string

委托人身份(用于流程)

false

-

address

string

住址

false

-

introduce

string

自我简介

false

-

code

string

各种码

false

-

invateId

int32

邀请人ID

false

-

invateUsername

string

邀请人用户名(注册时临时邀请码)

false

-

invateNickname

string

邀请人昵称

false

-

expiration

string

激活有效期 | 帐号有效期

false

-

state

int32

激活状态【-1=已禁用,0=已锁定,1=注册会员,2=VIP会员】(好友中代指关系状态)

false

-

alias

string

朋友别名(备注)

false

-

greeting

string

请求问候语(关系属性)

false

-

lastDate

string

上次登录时间

false

-

lastIp

string

上次登录IP

false

-

lastAddress

string

上次登录IP位置鉴定

false

-

createDate

string

注册时间

false

-

updateDate

string

更新时间

false

-

push

int32

消息推送

false

-

alert

int32

声音提醒

false

-

Request-example:

curl -X PUT -H "Content-Type: application/json" -i '/registry/save' --data '{
  "id": 0,
  "username": "",
  "email": "",
  "phone": "",
  "password": "",
  "password1": "",
  "password2": "",
  "nickname": "",
  "realname": "",
  "roleId": 0,
  "roleTitle": "",
  "corpId": 0,
  "corpName": "",
  "deptId": 0,
  "deptName": "",
  "gender": 0,
  "avatar": "",
  "birthday": "yyyy-MM-dd",
  "qq": "",
  "major": "",
  "university": "",
  "assignee": "",
  "address": "",
  "introduce": "",
  "code": "",
  "invateId": 0,
  "invateUsername": "",
  "invateNickname": "",
  "expiration": "yyyy-MM-dd HH:mm:ss",
  "state": 0,
  "alias": "",
  "greeting": "",
  "lastDate": "yyyy-MM-dd HH:mm:ss",
  "lastIp": "",
  "lastAddress": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss",
  "push": 0,
  "alert": 0
}'

14.8. 找回用户名

Type: POST

Author: Timothy

Content-Type: application/x-www-form-urlencoded

Description: 找回用户名

Query-parameters:

Parameter Type Description Required Since

email

string

No comments found.

false

-

Request-example:

curl -X POST -i '/registry/findUsername' --data '=cquo8g'

14.9. 找回密码

Type: POST

Author: Timothy

Content-Type: application/x-www-form-urlencoded

Description: 找回密码

Query-parameters:

Parameter Type Description Required Since

email

string

No comments found.

false

-

phone

string

No comments found.

false

-

Request-example:

curl -X POST -i '/registry/findPassword' --data '=ngj90j'

14.10. 重设用户密码

Type: POST

Author: Timothy

Content-Type: application/json

Description: 重设用户密码

Body-parameters:

Parameter Type Description Required Since

id

int32

ID

false

-

username

string

用户名
Validation[Size(max=12, message=用户名要求最多 {max} 位) ]

false

-

email

string

E-mail
Validation[Email(message=邮箱格式不正确) ]

false

-

phone

string

电话
Validation[Pattern(regexp=^1[3-9]\d{9}$, message=手机号格式不正确) ]

false

-

password

string

密码

false

-

password1

string

用户填写密码

false

-

password2

string

用户确认密码

false

-

nickname

string

用户昵称
Validation[Size(min=2, max=12, message=昵称位数要求在 {min} 和 {max} 之间) ]

false

-

realname

string

姓名

false

-

roleId

int32

角色ID

false

-

roleTitle

string

角色头衔

false

-

corpId

int32

所在公司ID

false

-

corpName

string

所在公司名称

false

-

deptId

int32

部门ID

false

-

deptName

string

部门名称

false

-

gender

int32

性别【0=女,1=男】

false

-

avatar

string

头像

false

-

birthday

string

生日
Validation[Past(message=你是从未来穿越回来的吗:)) ]

false

-

qq

string

QQ

false

-

major

string

专业

false

-

university

string

毕业院校

false

-

assignee

string

委托人身份(用于流程)

false

-

address

string

住址

false

-

introduce

string

自我简介

false

-

code

string

各种码

false

-

invateId

int32

邀请人ID

false

-

invateUsername

string

邀请人用户名(注册时临时邀请码)

false

-

invateNickname

string

邀请人昵称

false

-

expiration

string

激活有效期 | 帐号有效期

false

-

state

int32

激活状态【-1=已禁用,0=已锁定,1=注册会员,2=VIP会员】(好友中代指关系状态)

false

-

alias

string

朋友别名(备注)

false

-

greeting

string

请求问候语(关系属性)

false

-

lastDate

string

上次登录时间

false

-

lastIp

string

上次登录IP

false

-

lastAddress

string

上次登录IP位置鉴定

false

-

createDate

string

注册时间

false

-

updateDate

string

更新时间

false

-

push

int32

消息推送

false

-

alert

int32

声音提醒

false

-

Request-example:

curl -X POST -H "Content-Type: application/json" -i '/registry/resetPassword' --data '{
  "id": 0,
  "username": "",
  "email": "",
  "phone": "",
  "password": "",
  "password1": "",
  "password2": "",
  "nickname": "",
  "realname": "",
  "roleId": 0,
  "roleTitle": "",
  "corpId": 0,
  "corpName": "",
  "deptId": 0,
  "deptName": "",
  "gender": 0,
  "avatar": "",
  "birthday": "yyyy-MM-dd",
  "qq": "",
  "major": "",
  "university": "",
  "assignee": "",
  "address": "",
  "introduce": "",
  "code": "",
  "invateId": 0,
  "invateUsername": "",
  "invateNickname": "",
  "expiration": "yyyy-MM-dd HH:mm:ss",
  "state": 0,
  "alias": "",
  "greeting": "",
  "lastDate": "yyyy-MM-dd HH:mm:ss",
  "lastIp": "",
  "lastAddress": "",
  "createDate": "yyyy-MM-dd HH:mm:ss",
  "updateDate": "yyyy-MM-dd HH:mm:ss",
  "push": 0,
  "alert": 0
}'