package com.rongyichuang.auth.dto;
|
|
/**
|
* 登录响应DTO
|
*/
|
public class LoginResponse {
|
|
private String token;
|
private UserInfo userInfo;
|
|
public LoginResponse() {}
|
|
public LoginResponse(String token, UserInfo userInfo) {
|
this.token = token;
|
this.userInfo = userInfo;
|
}
|
|
public String getToken() {
|
return token;
|
}
|
|
public void setToken(String token) {
|
this.token = token;
|
}
|
|
public UserInfo getUserInfo() {
|
return userInfo;
|
}
|
|
public void setUserInfo(UserInfo userInfo) {
|
this.userInfo = userInfo;
|
}
|
|
/**
|
* 用户信息内部类
|
*/
|
public static class UserInfo {
|
private Long userId;
|
private String name;
|
private String phone;
|
private String userType; // 主要角色类型:优先employee,然后judge,最后player
|
private EmployeeInfo employee;
|
private JudgeInfo judge;
|
private PlayerInfo player;
|
|
public UserInfo() {}
|
|
public UserInfo(Long userId, String name, String phone, String userType) {
|
this.userId = userId;
|
this.name = name;
|
this.phone = phone;
|
this.userType = userType;
|
}
|
|
// Getters and Setters
|
public Long getUserId() {
|
return userId;
|
}
|
|
public void setUserId(Long userId) {
|
this.userId = userId;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public String getUserType() {
|
return userType;
|
}
|
|
public void setUserType(String userType) {
|
this.userType = userType;
|
}
|
|
public EmployeeInfo getEmployee() {
|
return employee;
|
}
|
|
public void setEmployee(EmployeeInfo employee) {
|
this.employee = employee;
|
}
|
|
public JudgeInfo getJudge() {
|
return judge;
|
}
|
|
public void setJudge(JudgeInfo judge) {
|
this.judge = judge;
|
}
|
|
public PlayerInfo getPlayer() {
|
return player;
|
}
|
|
public void setPlayer(PlayerInfo player) {
|
this.player = player;
|
}
|
}
|
|
/**
|
* 员工信息
|
*/
|
public static class EmployeeInfo {
|
private Long id;
|
private String name;
|
private String roleId;
|
private String description;
|
|
public EmployeeInfo() {}
|
|
public EmployeeInfo(Long id, String name, String roleId, String description) {
|
this.id = id;
|
this.name = name;
|
this.roleId = roleId;
|
this.description = description;
|
}
|
|
// Getters and Setters
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getRoleId() {
|
return roleId;
|
}
|
|
public void setRoleId(String roleId) {
|
this.roleId = roleId;
|
}
|
|
public String getDescription() {
|
return description;
|
}
|
|
public void setDescription(String description) {
|
this.description = description;
|
}
|
}
|
|
/**
|
* 评委信息
|
*/
|
public static class JudgeInfo {
|
private Long id;
|
private String name;
|
private String title;
|
private String company;
|
private String description;
|
|
public JudgeInfo() {}
|
|
public JudgeInfo(Long id, String name, String title, String company, String description) {
|
this.id = id;
|
this.name = name;
|
this.title = title;
|
this.company = company;
|
this.description = description;
|
}
|
|
// Getters and Setters
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getTitle() {
|
return title;
|
}
|
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
public String getCompany() {
|
return company;
|
}
|
|
public void setCompany(String company) {
|
this.company = company;
|
}
|
|
public String getDescription() {
|
return description;
|
}
|
|
public void setDescription(String description) {
|
this.description = description;
|
}
|
}
|
|
/**
|
* 学员信息内部类
|
*/
|
public static class PlayerInfo {
|
private Long id;
|
private String name;
|
private String phone;
|
private String description;
|
private Integer auditState; // 审核状态:0-等待审核,1-审核通过,2-不通过
|
|
public PlayerInfo() {}
|
|
public PlayerInfo(Long id, String name, String phone, String description, Integer auditState) {
|
this.id = id;
|
this.name = name;
|
this.phone = phone;
|
this.description = description;
|
this.auditState = auditState;
|
}
|
|
// Getters and Setters
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public String getDescription() {
|
return description;
|
}
|
|
public void setDescription(String description) {
|
this.description = description;
|
}
|
|
public Integer getAuditState() {
|
return auditState;
|
}
|
|
public void setAuditState(Integer auditState) {
|
this.auditState = auditState;
|
}
|
}
|
}
|