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

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - yf-sip系统配置新增/修改 Request VO")
@Data
public class IotYfSipConfigSaveReqVO {

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

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

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

    @Schema(description = "系统默认配置")
    private Boolean isdefault;

    @Schema(description = "拓展sdp")
    private Boolean seniorSdp;

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

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

    @Schema(description = "sip认证密码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "sip认证密码不能为空")
    private String password;

    @Schema(description = "sip接入IP")
    private String ip;

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

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

    @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "创建者不能为空")
    private String createBy;

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

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

}
