package com.yunzhupaas.base.model.dictionarytype;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import jakarta.validation.constraints.NotNull;

/**
 *
 * @author 云筑产品开发平台组
 * @version V3.1.0
 * @copyright 深圳市乐程软件有限公司
 * @date 2024/3/12 15:31
 */
@Data
public class DictionaryTypeCrForm {
    @Schema(description = "父级主键")
    @org.hibernate.validator.constraints.NotBlank(message = "必填")
    private String parentId;
    @Schema(description = "名称")
    @org.hibernate.validator.constraints.NotBlank(message = "必填")
    private String fullName;
    @Schema(description = "编码")
    @NotBlank(message = "必填")
    private String enCode;
    @Schema(description = "是否树形")
    @NotNull(message = "必填")
    private Integer isTree;
    @Schema(description = "说明")
    private String description;
    @Schema(description = "排序码")
    private long sortCode;
    @Schema(description = "类型")
    private Integer category;
}

