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.RuntimeRemark;
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 RuntimeRemarkRequest extends BaseRequest {

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

    @NotEmpty(message = "用户备注列表不能为空", groups = {add.class})
    @ChineseDescription("用户备注列表")
    private List<RuntimeRemark> userRemarkList;

}