package com.zt.plat.module.qms.common.data.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 数据集字段新增/修改 Request VO")
@Data
public class DataCollectionFieldSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "21752")
    private Long id;

    @Schema(description = "数据集ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1538")
    @NotNull(message = "数据集ID不能为空")
    private Long dataCollectionId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String fieldName;

    @Schema(description = "字段key", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "字段key不能为空")
    private String fieldKey;

    @Schema(description = "字段类型,【字典】【jy_data_collect_field_type】文件、记录、模板", example = "1")
    private String fieldType;

    @Schema(description = "禁用状态")
    private String cancelFlag;

    @Schema(description = "排序号")
    private Integer sortNo;

    @Schema(description = "其他配置")
    private String customConfig;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

    @Schema(description = "备注")
    private String remark;

}