package cn.stylefeng.team.portal.modular.management.pojo.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class PortalNewsCategoryRequest extends BaseRequest {

    @NotNull(message = "主键id不能为空", groups = {edit.class, delete.class, detail.class})
    @ChineseDescription("主键id")
    private Long categoryId;

    @ChineseDescription("门户设计id")
    @NotNull(message = "门户设计id不能为空", groups = {add.class})
    private Long designId;

    @ChineseDescription("父级分类id")
    @NotNull(message = "父级id不能为空", groups = {add.class, edit.class})
    private Long parentId;

    @ChineseDescription("类别的名称")
    @NotNull(message = "类别的名称不能为空", groups = {add.class, edit.class})
    private String categoryName;

    @ChineseDescription("类别的顺序")
    private BigDecimal fldSort;

    @NotNull(message = "批量删除id集合不能为空", groups = batchDelete.class)
    @ChineseDescription("批量删除用的id集合")
    private List<Long> batchDeleteIdList;

}