package org.dromara.work.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.work.domain.TpCategory;

/**
 * 作品类目业务对象 tp_category
 *
 * @author Maosw
 * @date 2025-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpCategory.class, reverseConvertGenerate = false)
public class TpCategoryBo extends BaseEntity {

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

    /**
     * 父节点
     */
    @NotNull(message = "父节点不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

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

    /**
     * 类目图标
     */
    private String icon;

    /**
     * 类目的显示图片
     */
    private String pic;

    /**
     * 状态（1正常 0关闭）
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remark;


}
