|
@@ -1,7 +1,7 @@
|
|
|
package jp.yamoto.farm.common.core.domain.model;
|
|
package jp.yamoto.farm.common.core.domain.model;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
|
|
-import jp.yamoto.farm.common.core.domain.entity.MastNoka;
|
|
|
|
|
|
|
+import jp.yamoto.farm.common.core.domain.entity.MastNokaLoginInfo;
|
|
|
import jp.yamoto.farm.common.core.domain.entity.SysUser;
|
|
import jp.yamoto.farm.common.core.domain.entity.SysUser;
|
|
|
import org.springframework.security.core.GrantedAuthority;
|
|
import org.springframework.security.core.GrantedAuthority;
|
|
|
import org.springframework.security.core.userdetails.UserDetails;
|
|
import org.springframework.security.core.userdetails.UserDetails;
|
|
@@ -70,7 +70,7 @@ public class LoginUser implements UserDetails
|
|
|
/**
|
|
/**
|
|
|
* 農家 User
|
|
* 農家 User
|
|
|
*/
|
|
*/
|
|
|
- private MastNoka mastNoka;
|
|
|
|
|
|
|
+ private MastNokaLoginInfo mastNoka;
|
|
|
|
|
|
|
|
public LoginUser()
|
|
public LoginUser()
|
|
|
{
|
|
{
|
|
@@ -83,7 +83,7 @@ public class LoginUser implements UserDetails
|
|
|
this.permissions = permissions;
|
|
this.permissions = permissions;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public LoginUser(Long userId, MastNoka user, Set<String> permissions)
|
|
|
|
|
|
|
+ public LoginUser(Long userId, MastNokaLoginInfo user, Set<String> permissions)
|
|
|
{
|
|
{
|
|
|
this.userId = userId;
|
|
this.userId = userId;
|
|
|
this.mastNoka = user;
|
|
this.mastNoka = user;
|
|
@@ -241,11 +241,11 @@ public class LoginUser implements UserDetails
|
|
|
this.user = user;
|
|
this.user = user;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public MastNoka getMastNoka() {
|
|
|
|
|
|
|
+ public MastNokaLoginInfo getMastNoka() {
|
|
|
return mastNoka;
|
|
return mastNoka;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setMastNoka(MastNoka mastNoka) {
|
|
|
|
|
|
|
+ public void setMastNoka(MastNokaLoginInfo mastNoka) {
|
|
|
this.mastNoka = mastNoka;
|
|
this.mastNoka = mastNoka;
|
|
|
}
|
|
}
|
|
|
|
|
|