package cn.iocoder.yudao.module.pms.controller.admin.yanfan.sip.device.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;

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

@Schema(description = "管理后台 - yf监控设备新增/修改 Request VO")
@Data
public class YfSipDeviceSaveReqVO {

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4153")
    private Long deviceId;

    @Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11116")
    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "产品名称不能为空")
    private String productName;

    @Schema(description = "设备SipID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8965")
    @NotEmpty(message = "设备SipID不能为空")
    private String deviceSipId;

    @Schema(description = "设备名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "设备名称不能为空")
    private String deviceName;

    @Schema(description = "厂商名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "厂商名称不能为空")
    private String manufacturer;

    @Schema(description = "产品型号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品型号不能为空")
    private String model;

    @Schema(description = "固件版本", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "固件版本不能为空")
    private String firmware;

    @Schema(description = "传输模式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "传输模式不能为空")
    private String transport;

    @Schema(description = "流模式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "流模式不能为空")
    private String streamMode;

    @Schema(description = "在线状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "在线状态不能为空")
    private String online;

    @Schema(description = "注册时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "注册时间不能为空")
    private LocalDateTime registerTime;

    @Schema(description = "最后上线时间")
    private LocalDateTime lastConnectTime;

    @Schema(description = "激活时间")
    private LocalDateTime activeTime;

    @Schema(description = "设备入网IP")
    private String ip;

    @Schema(description = "设备接入端口号")
    private Long port;

    @Schema(description = "设备地址")
    private String hostAddress;

    @Schema(description = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

    @Schema(description = "创建者")
    private String createBy;

    @Schema(description = "更新者")
    private String updateBy;

    @Schema(description = "备注", example = "随便")
    private String remark;

}
