package com.mzl.flower.dto.security; import lombok.Getter; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.User; import java.util.Collection; public class UserDTO extends User { @Getter private String id; @Getter private String name; @Getter private String userType; public UserDTO(String id, String name,String userType, String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection authorities) { super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities); this.id = id; this.name = name; this.userType = userType; } }