package com.hotwj.platform.driverManagement.driverGroup.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.driverManagement.driverGroup.domain.HotDriverGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;


/**
 * 驾驶员分组视图对象 hot_driver_group
 *
 * @author shihongwei
 * @date 2025-12-16
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotDriverGroup.class)
public class HotDriverGroupVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 公司ID
     */
    @ExcelProperty(value = "公司ID")
    private Long companyId;

    /**
     * 组名
     */
    @ExcelProperty(value = "组名")
    private String groupName;

    /**
     * 组长驾驶员ID
     */
    @ExcelProperty(value = "组长驾驶员ID")
    private Long leaderId;

    /**
     * 组长姓名
     */
    @ExcelProperty(value = "组长姓名")
    private String leaderName;

    /**
     * 组员驾驶员ID列表（逗号分隔）
     */
    @ExcelProperty(value = "组员驾驶员ID列表", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "逗=号分隔")
    private String memberIds;

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

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;


}
