package org.dromara.project.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.project.domain.BusProjectTeamMember;

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


/**
 * 项目班组下的成员视图对象 bus_project_team_member
 *
 * @author lcj
 * @date 2025-03-07
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusProjectTeamMember.class)
public class BusProjectTeamMemberVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 班组id
     */
    @ExcelProperty(value = "班组id")
    private Long teamId;

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

    /**
     * 施工人员id
     */
    @ExcelProperty(value = "施工人员id")
    private Long memberId;

    /**
     * 施工人员名称
     */
    @ExcelProperty(value = "施工人员名称")
    private String memberName;

    /**
     * 岗位（默认为0普通员工，1组长）
     */
    @ExcelProperty(value = "岗位", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "默认为0普通员工，1组长")
    private String postId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

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

}
