package com.zt.plat.module.base.api.businessdictionarytype.dto;

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

import java.time.LocalDateTime;
import java.util.List;

/**
 * 业务字典类型新增/修改 Request DTO
 */
@Data
public class BusinessDictionaryTypeSaveReqDTO {

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

    @Schema(description = "字典名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "物料状态")
    @NotEmpty(message = "字典名称不能为空")
    private String name;

    @Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "base_material_status")
    @NotEmpty(message = "字典类型不能为空")
    private String type;

    @Schema(description = "状态(0正常 1停用)", example = "0")
    private Long status;

    @Schema(description = "备注", example = "基础物料状态")
    private String remark;

    @Schema(description = "删除时间")
    private LocalDateTime delTime;

    @Schema(description = "业务字典数据列表")
    private List<BusinessDictionaryDataDTO> businessDictionaryDatas;
}
