package com.zksy.manhole.dto.in;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 操作工单-入参
 *
 * @author xianggx
 */
@Data
@ApiModel(value = "操作工单-入参", description = "操作工单-入参")
public class WorkOrderOperInDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "工单ID", required = true)
    private Long orderId;

    @ApiModelProperty(value = "操作类型：2-派单 3-接单 4-开始维修 5-提交验收 6-验收通过 7-驳回工单 8-申请延期 9-延期审核通过", required = true)
    private Integer operType;

    @ApiModelProperty(value = "操作详情描述", required = true)
    private String operDesc;

    @ApiModelProperty(value = "操作人ID", required = true)
    private Long operUserId;

    @ApiModelProperty(value = "接单运维人员ID(操作类型为 2-派单 时，必填)")
    private Long receiveUser;

    @ApiModelProperty(value = "延期原因(操作类型为 8-申请延期 时，必填)")
    private String delayedReason;

    @ApiModelProperty(value = "延期截止时间(操作类型为 8-申请延期 时，必填)")
    @JsonFormat(locale = "zh",pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date delayedDeadline;
}
