package org.dromara.system.domain.vo.userprojectrelevancy;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.system.domain.BusUserProjectRelevancy;
import org.dromara.system.domain.vo.project.BusProjectVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 系统用户与项目关联视图对象 user_project_relevancy
 *
 * @author lilemy
 * @date 2025-03-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusUserProjectRelevancy.class)
public class BusUserProjectRelevancyVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 项目ID
     */
    @ExcelProperty(value = "项目ID")
    private Long projectId;

    /**
     * 用户类型(0系统管理员 1普通人员 2项目管理员)
     */
    @ExcelProperty(value = "用户类型(0系统管理员 1普通人员 2项目管理员)")
    private String userType;

    /**
     * 项目详情
     */
    @ExcelProperty(value = "项目详情")
    private BusProjectVo project;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

}
