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.ProductCategory;

/**
 * 产品分类业务对象 product_category
 *
 * @author Lion Li
 * @date 2025-06-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProductCategory.class, reverseConvertGenerate = false)
public class ProductCategoryBo 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;


}
