package cn.lihongjie.coal.user.dto;

import cn.lihongjie.coal.base.dto.OrgCommonDto;
import cn.lihongjie.coal.pojoProcessor.OrganizationName;

import lombok.Data;

import org.hibernate.annotations.Comment;

import java.util.List;

@Data
public class UserDto extends OrgCommonDto {
    @Comment("用户名")
    private String username;

    @Comment("邮箱")
    private String email;

    @Comment("手机号")
    private String phone;

    @Comment("会话ID")
    private String sessionId;

    @Comment("机构管理员标识")
    private Boolean orgAdmin;

    @Comment("系统管理员标识")
    private Boolean sysAdmin;

    @OrganizationName
    private String organizationName;

    private List<RoleDto> roles;
    private List<RoleDto> otherRoles;



    @Data
    public static class RoleDto extends OrgCommonDto {}
}
