| | |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.io.Serial; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | |
| | | @NoArgsConstructor |
| | | public class LoginUser implements Serializable { |
| | | |
| | | @Serial |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | |
| | | * 获取登录id |
| | | */ |
| | | public String getLoginId() { |
| | | if (userType == null) { |
| | | throw new IllegalArgumentException("用户类型不能为空"); |
| | | } |
| | | if (userId == null) { |
| | | throw new IllegalArgumentException("用户ID不能为空"); |
| | | } |
| | | return userType + LoginHelper.JOIN_CODE + userId; |
| | | } |
| | | |