package cn.skcks.docking.gb28181.wvp.dto.login;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class WvpLoginResp {

    private String accessToken;
    private Boolean accountNonExpired;
    private Boolean credentialsNonExpired;
    private Boolean accountNonLocked;
    private String password;
    private Boolean enabled;
    private RoleDTO role;
    private List<AuthoritiesDTO> authorities;
    private String username;
    private Integer id;

    @NoArgsConstructor
    @Data
    public static class RoleDTO {
        private Integer id;
        private String name;
        private String authority;
        private String createTime;
        private String updateTime;
    }

    @NoArgsConstructor
    @Data
    public static class AuthoritiesDTO {
        private String authority;
    }
}
