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.BusProjectTeam;

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


/**
 * 项目班组视图对象 bus_project_team
 *
 * @author lcj
 * @date 2025-03-07
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusProjectTeam.class)
public class BusProjectTeamVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

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

    /**
     * 班组名称
     */
    @ExcelProperty(value = "班组名称")
    private String teamName;

    /**
     * 范围内打卡（0范围内打卡 1任何地点打卡）默认为1
     */
    @ExcelProperty(value = "范围内打卡", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=范围内打卡,1=任何地点打卡")
    private String isClockIn;

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

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

}
