[+] 信令调整
This commit is contained in:
@@ -2,19 +2,18 @@ package com.acgist.taoyao.boot.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 信令描述
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Component
|
||||
@Inherited
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface Description {
|
||||
@@ -22,7 +21,7 @@ public @interface Description {
|
||||
/**
|
||||
* @return 消息主体
|
||||
*/
|
||||
String[] body() default { "{}" };
|
||||
String[] body() default { "" };
|
||||
|
||||
/**
|
||||
* @return 数据流向
|
||||
|
||||
@@ -51,6 +51,10 @@ public interface Constant {
|
||||
* 电池电量(0~100)
|
||||
*/
|
||||
String BATTERY = "battery";
|
||||
/**
|
||||
* 是否发生告警
|
||||
*/
|
||||
String ALARMING = "alarming";
|
||||
/**
|
||||
* 是否正在充电
|
||||
*/
|
||||
|
||||
@@ -23,6 +23,8 @@ import lombok.Setter;
|
||||
@ConfigurationProperties(prefix = "taoyao.webrtc")
|
||||
public class WebrtcProperties {
|
||||
|
||||
@Schema(title = "是否加密", description = "是否加密")
|
||||
private Boolean encrypt;
|
||||
@Schema(title = "STUN服务器", description = "STUN服务器")
|
||||
private WebrtcStunProperties[] stun;
|
||||
@Schema(title = "TURN服务器", description = "TURN服务器")
|
||||
|
||||
Reference in New Issue
Block a user