package cn.axzo.msg.center.service.pending.request;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.annotation.Nullable;
import javax.validation.constraints.NotBlank;

/**
 * @author haiyangjin
 * @date 2023/11/16
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SetHideRequest {

    /**
     * 流程类代办的流程结点编码
     */
    @NotBlank(message = "subBizCode is required")
    private String subBizCode;
    /**
     * 需要隐藏多少秒, 如果没有传将会使用默认值
     */
    @Nullable
    private Integer hideSeconds;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
