package cn.stylefeng.team.form.modular.manage.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 FormTemplateRequest extends BaseRequest {

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

    @ChineseDescription("表单模板的名称")
    @NotNull(message = "表单模板的名称不能为空", groups = {edit.class})
    private String templateName;

    @ChineseDescription("表单模板的编码")
    @NotNull(message = "表单模板的编码不能为空", groups = {edit.class})
    private String templateCode;

    @ChineseDescription("表单模板排序")
    @NotNull(message = "表单模板排序不能为空", groups = {edit.class})
    private BigDecimal templateSort;

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

    @NotNull(message = "表单模型id不能为空", groups = add.class)
    @ChineseDescription("表单模型id")
    private Long fromModelId;

}