package com.starry.admin.modules.system.vo;

import com.starry.admin.modules.clerk.module.entity.PlayClerkUserInfoEntity;
import com.starry.admin.modules.system.module.entity.SysUserEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: huchuansai
 * @Date: 2024/6/14 2:49 PM
 * @Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "用户列表展示对象", description = "系统用户列表格式化展示的对象")
public class SysUserEntityListVo extends SysUserEntity {

    @ApiModelProperty(value = "角色列表", notes = "用户拥有的角色信息列表")
    private List<RoleVo> roleVoList;

    @ApiModelProperty(value = "店员信息", notes = "关联的店员详细信息")
    private PlayClerkUserInfoEntity clerkUserInfo;

    @Data
    @AllArgsConstructor
    @ApiModel(value = "角色信息对象", description = "用户所属角色的简要信息")
    public static class RoleVo {

        @ApiModelProperty(value = "角色名称", example = "管理员")
        private String roleName;

        @ApiModelProperty(value = "角色对应的用户名", example = "admin")
        private String roleUserName;

    }

}
