package cn.stylefeng.workflow.instance.modular.tag.pojo.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.workflow.instance.modular.tag.entity.RuntimeTag;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

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

    @NotNull(message = "流程实例id不能为空", groups = {add.class, list.class})
    @ChineseDescription("流程实例id")
    private Long instanceId;

    @NotEmpty(message = "流程实例标签的列表", groups = {add.class})
    @ChineseDescription("流程实例标签的列表")
    private List<RuntimeTag> runtimeTagList;

}