用户注册类型添加
This commit is contained in:
@@ -74,7 +74,7 @@ public class SysUser extends BaseEntity
|
||||
private Date pwdUpdateDate;
|
||||
|
||||
/**
|
||||
* 用户类型(operation:运营管理,fleetManagement:车队管理)
|
||||
* 用户类型(manager:管理员,interviewer:面试官 ,candidate:候选者)
|
||||
*/
|
||||
private String sysUserType;
|
||||
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
package com.vetti.common.core.domain.model;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 用户注册对象
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Data
|
||||
public class RegisterBody extends LoginBody
|
||||
{
|
||||
/**
|
||||
* 用户类型(manager:管理员,interviewer:面试官 ,candidate:候选者)
|
||||
*/
|
||||
@ApiModelProperty("用户类型(manager:管理员,interviewer:面试官 ,candidate:候选者)")
|
||||
private String sysUserType;
|
||||
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ public class SysRegisterService
|
||||
}
|
||||
else
|
||||
{
|
||||
sysUser.setSysUserType(registerBody.getSysUserType());
|
||||
sysUser.setNickName(username);
|
||||
sysUser.setPwdUpdateDate(DateUtils.getNowDate());
|
||||
sysUser.setPassword(SecurityUtils.encryptPassword(password));
|
||||
|
||||
Reference in New Issue
Block a user