package cn.stylefeng.team.form.modular.component.pojo.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import jakarta.validation.constraints.NotBlank;
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 FormComponentCategoryRequest extends BaseRequest {

    @NotNull(message = "表单组件分类id不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("表单组件分类id")
    private Long componentCategoryId;

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

    @NotBlank(message = "分类编码不能为空", groups = {add.class, edit.class})
    @ChineseDescription("分类编码")
    private String categoryCode;

    @ChineseDescription("排序")
    private BigDecimal fldSort;

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

}
