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.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

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

    @ChineseDescription("表单组件id")
    private Long componentId;

    @ChineseDescription("所属组件分类id")
    private Long componentCategoryId;

    @ChineseDescription("表单组件名称")
    private String componentName;

    @ChineseDescription("表单组件编码")
    private String componentCode;

    @ChineseDescription("组件图标，来自iconfont")
    private String componentIcon;

    @ChineseDescription("启用移动端：true-开启，false-不开启")
    private Boolean mobileEnableFlag;

    @ChineseDescription("启用代码生成：true-开启，false-不开启")
    private Boolean codeGeneratorFlag;

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

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

}
