package cn.ey.biz.module.system.api.bpm.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;

@ApiModel("流程管理 - 不通过流程任务的 Request DTO")
@Data
public class BpmTaskRejectDTO  extends BpmWeaverDTO{

    @ApiModelProperty(value = "用户Code", required = true, example = "100")
    @NotEmpty(message = "用户Code不能为空")
    private String userCode;

    @ApiModelProperty(value = "退回到指定节点")
    private String otherParams;        //退回到指定节点 {"RejectToType":0,"RejectToNodeid":3974}

    @ApiModelProperty(value = "任务编号", required = true, example = "1024")
    @NotEmpty(message = "任务编号不能为空")
    private String id;

    @ApiModelProperty(value = "审批意见", required = true, example = "不错不错！")
    private String reason;

}
