package com.cpop.oam.business.bo;

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

import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 工单暂停请求对象
 * @author DB
 * @since 2023-11-29 16:01:35
 * @version 1.0.0
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "工单暂停请求对象")
public class PauseWorkOrderBo {

    /**
     * 工单id
     */
    @NotBlank(message = "工单id不能为空")
    @ApiModelProperty("工单id")
    private String workOrderId;

    /**
     * 暂停到时间
     */
    @NotNull(message = "时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("暂停到时间")
    private LocalDateTime pauseExpireTime;

}
