package com.mortals.xhx.module.api.model;

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

import java.util.Date;

/**
 *
 * 事件上报参数
 * 
 * @author luoshichao
 * @Description
 * @date 2021/1/8 10:28
 */
@ApiModel
@Data
public class AssetEventLogSubmitReq extends AssetEventLog {
    /** 是否返回后续可操作事件 */
    @ApiModelProperty(value = "是否返回后续可操作事件", required = false, example = "1")
    private int returnNextEvent;


    /*****************   以下字段是给Boss系统构造台账数据使用的  *********************************/

    /** 经度 */
    @ApiModelProperty(value = "经度", required = false, example = "135.22")
    private String longitude;

    /** 纬度 */
    @ApiModelProperty(value = "纬度", required = false, example = "35")
    private String latitude;


  /*  @ApiModelProperty(value = "事件发生开始时间", required = true, example = "2021-02-24 10:10:10")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date eventStartTime;*/

    /** 事件发生时间 */
    @ApiModelProperty(value = "事件发生结束时间", required = true, example = "2021-02-24 10:10:10")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date eventEndTime;

    @ApiModelProperty(value = "行政区域ID", required = false)
    private Long areaId;

    @ApiModelProperty(value = "行政区域名称", required = false)
    private String areaName;

    /** 运维人员ID */
    @ApiModelProperty(value = "运维人员ID", required = false)
    private Long staffId;

    /** 运维人员姓名 */
    @ApiModelProperty(value = "运维人员姓名", required = false)
    private String staffName;

    /** 共同工作人员姓名 */
    @ApiModelProperty(value = "共同工作人员姓名", required = false)
    private String together;

    @ApiModelProperty(value = "门店ID", required = false)
    private Long shopId;
}
