package cn.iocoder.yudao.module.asset.controller.admin.inspection.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * 验车模板检查项 VO
 */
@Schema(description = "管理后台 - 验车模板检查项 VO")
@Data
public class InspectionTemplateItemVO {

    @Schema(description = "主键ID", example = "1")
    private Long id;

    @Schema(description = "分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "外观检查")
    @NotBlank(message = "分类不能为空")
    private String category;

    @Schema(description = "检查项名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "车身漆面")
    @NotBlank(message = "检查项名称不能为空")
    private String itemName;

    @Schema(description = "检查项编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "BODY_PAINT")
    @NotBlank(message = "检查项编码不能为空")
    private String itemCode;

    @Schema(description = "输入类型", example = "checkbox")
    private String inputType;

    @Schema(description = "排序", example = "0")
    private Integer sort;

    @Schema(description = "是否必填（0=否 1=是）", example = "1")
    private Integer required;

}
