package com.ruoyi.common.core.domain.vo;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.Dept;
import com.ruoyi.common.core.domain.entity.Role;
import com.ruoyi.common.core.domain.entity.User;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author wjh
 * 2024/10/22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserVO extends User {

    @ApiModelProperty("部门名称")
    @Excel(name = "部门名称", type = Excel.Type.IMPORT)
    private String deptName;

    /** 部门对象 */
    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })
    private Dept dept;

    /** 角色对象 */
    private List<Role> roles;

    /** 角色组 */
    private Long[] roleIds;

    /** 岗位组 */
    private Long[] postIds;

    @ApiModelProperty("代理商名称")
    private String agentName;

    @ApiModelProperty("代理商分成比例")
    private BigDecimal agentPoint;
}
