package com.kospo.talk.payload;

import com.kospo.talk.model.Role;
import com.kospo.talk.model.Work;
import jakarta.persistence.*;
import jakarta.validation.constraints.Size;
import lombok.*;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;
import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserDto {
    private String sabun;
    private String name;
    private String deptCd;
    private String deptNm;
    private String formalNm;
    private String ptsnNm;
    private String gradeCd;
    private String gradeNm;
    private String ofcePhn;
    private String mblPhn;
    private String state;
    private String stress;
    private boolean onlineYn = false;
    List<SmWork> works;
    List<Role> roles;

    @NoArgsConstructor
    @AllArgsConstructor
    @Setter
    @Getter
    @Builder
    public static class SmWork {
        String workId;
        String workNm;
    }
}