This commit is contained in:
张良(004796)
2023-12-20 21:40:09 +08:00
parent a3d488ac73
commit 346fbb494e
242 changed files with 388 additions and 41827 deletions

View File

@@ -0,0 +1,21 @@
package com.ruoyi.common.core.domain.model;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
@Getter
@Setter
public class LoginBaseUser implements Serializable {
private Long userId;
private String userType;
public String getLoginId() {
if (userId == null) {
throw new IllegalArgumentException("用户ID不能为空");
}
return getUserType() + ":" + userId;
}
}