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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.*;

@Schema(description = "管理后台 - yf流媒体服务器配置新增/修改 Request VO")
@Data
public class YfMediaServerSaveReqVO {

    @Schema(description = "流媒体配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28202")
    private Long id;

    @Schema(description = "服务器标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "10688")
    @NotEmpty(message = "服务器标识不能为空")
    private String serverId;

    @Schema(description = "租户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
//    @NotEmpty(message = "租户名称不能为空")
    private String tenantName;

    @Schema(description = "使能开关")
    private Integer enabled;

    @Schema(description = "默认播放协议", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "默认播放协议不能为空")
    private String protocol;

    @Schema(description = "服务器ip", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "服务器ip不能为空")
    private String ip;

    @Schema(description = "服务器域名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "服务器域名不能为空")
    private String domain;

    @Schema(description = "回调服务器地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "回调服务器地址不能为空")
    private String hookurl;

    @Schema(description = "流媒体密钥", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "流媒体密钥不能为空")
    private String secret;

    @Schema(description = "http端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "http端口不能为空")
    private Integer portHttp;

    @Schema(description = "https端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "https端口不能为空")
    private Integer portHttps;

    @Schema(description = "rtmp端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "rtmp端口不能为空")
    private Integer portRtmp;

    @Schema(description = "rtsp端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "rtsp端口不能为空")
    private Integer portRtsp;

    @Schema(description = "RTP收流端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "RTP收流端口不能为空")
    private Integer rtpProxyPort;

    @Schema(description = "是否使用多端口模式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否使用多端口模式不能为空")
    private Integer rtpEnable;

    @Schema(description = "rtp端口范围", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "rtp端口范围不能为空")
    private String rtpPortRange;

    @Schema(description = "录像服务端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "录像服务端口不能为空")
    private Integer recordPort;

    @Schema(description = "是否自动同步配置ZLM", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否自动同步配置ZLM不能为空")
    private Integer autoConfig;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
//    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "删除标志（0代表存在 2代表删除）", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "删除标志（0代表存在 2代表删除）不能为空")
    private String delFlag;

    @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED)
    private String createBy;

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

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "ws端口")
    private Integer portWs;
    private Long tenantId;
}
