package cn.stylefeng.team.meta.modular.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.util.List;

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

    @NotNull(message = "模型定义id不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("模型定义id")
    private Long metaDefinitionId;

    @NotNull(message = "所属业务分类id不能为空", groups = {add.class, edit.class})
    @ChineseDescription("所属业务分类id")
    private Long businessCategoryId;

    @NotNull(message = "所属业务id不能为空", groups = {add.class, edit.class})
    @ChineseDescription("所属业务id")
    private Long businessId;

    @NotNull(message = "所属模型id不能为空", groups = {add.class, edit.class})
    @ChineseDescription("所属模型id")
    private Long metaModelId;

    @NotBlank(message = "模型定义的版本号，例如：1.0不能为空", groups = {add.class, edit.class})
    @ChineseDescription("模型定义的版本号，例如：1.0")
    private String fldVersion;

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

}
