package org.dromara.progress.domain.vo.progresscategorytemplate;

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.progress.domain.PgsProgressCategoryTemplate;

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


/**
 * 进度类别模版视图对象 pgs_progress_category_template
 *
 * @author lcj
 * @date 2025-05-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PgsProgressCategoryTemplate.class)
public class PgsProgressCategoryTemplateVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 父类别id
     */
    @ExcelProperty(value = "父类别id")
    private Long pid;

    /**
     * 类别名称
     */
    @ExcelProperty(value = "类别名称")
    private String name;

    /**
     * 计量方式（0无 1数量 2百分比）
     */
    @ExcelProperty(value = "计量方式", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=数量,2=百分比")
    private String unitType;

    /**
     * 项目id（0表示共用）
     */
    @ExcelProperty(value = "项目id")
    private Long projectId;


}
