package org.dromara.web.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.web.domain.SuppliesCategory;

/**
 * 耗材分类业务对象 supplies_category
 *
 * @author Lion Li
 * @date 2025-06-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SuppliesCategory.class, reverseConvertGenerate = false)
public class SuppliesCategoryBo extends BaseEntity {

    /**
     * 耗材分类ID
     */
    @NotNull(message = "耗材分类ID不能为空", groups = { EditGroup.class })
    private Long categoryId;

    /**
     * 父耗材分类id
     */
    private Long parentId;

    /**
     * 耗材分类名称
     */
    @NotBlank(message = "耗材分类名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 显示顺序
     */
    private Long orderNum;


}
