package com.ho.common.tools.entity;

import com.ho.common.tools.vo.req.PositionVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author fancl
 * @desc: 包含用户角色列表 菜单列表 权限列表
 * @date 2022/8/15
 */

@Getter
@Setter
@ToString
public class UserDetailRespVO {

    @ApiModelProperty(value = "用户id")
    private String userId;

    private Integer groupId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "登陆渠道：pc / app ,对应登陆是送的type")
    private String loginChannel;

    @ApiModelProperty(value = "登陆类型:account:账号方式 phone:手机方式 ,后台判断")
    private String loginType;

    @ApiModelProperty(value = "accessToken,对应前端后续上送的 authorization")
    private String accessToken;

    @ApiModelProperty(value = "组织机构id")
    private Integer deptId;

    @ApiModelProperty(value = "组织机构名称")
    private String deptName;

    @ApiModelProperty(value = "角色列表")
    //private List<SysRole> roles ;
    private List<String> roles;

    @ApiModelProperty(value = "角色Id列表")
    private List<Integer> roleIds;

    @ApiModelProperty(value = "岗位列表")
    private List<String> positions;

    @ApiModelProperty(value = "岗位中文列表")
    private List<PositionVo> positionList;

    //角色名称
    @ApiModelProperty(value = "角色名称列表")
    List<String> roleNames;

    @ApiModelProperty(value = "权限列表")
    private List<String> powerList;


    @ApiModelProperty(value = "菜单列表")
    private List<SysPermission> menuList;

    @ApiModelProperty(value = "用户等级")
    private Integer userLevel;

    @ApiModelProperty(value = "组态(组态：config,空值为非组态)")
    private String configType;
}
