package cn.axzo.workflow.common.model.response.bpmn.task;

import cn.axzo.workflow.common.enums.BpmnProcessInstanceResultEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@ApiModel("我已完成的任务列表响应模型")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BpmnTaskDonePageItemVO extends BpmnTaskTodoPageItemVO {

    /**
     * 审批任务结束时间
     */
    @ApiModelProperty(value = "审批任务结束时间", required = true)
    private Date endTime;

    /**
     * 持续时间
     */
    @ApiModelProperty(value = "持续时间", required = true, example = "1000")
    private Long durationInMillis;

    /**
     * 审核状态
     */
    @ApiModelProperty(value = "审核状态(PROCESSING:审核中,APPROVED:已通过,REJECTED:已驳回,CANCELLED:已撤回)", example = "APPROVED")
    private BpmnProcessInstanceResultEnum result;

    /**
     * 审批建议
     */
    @ApiModelProperty(value = "审批建议", required = true, example = "不请假了！")
    private String comment;

    /**
     * 流程实例结束时间
     */
    @ApiModelProperty(value = "流程实例结束时间")
    private Date processInstanceEndTime;
}
