|
@@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
import com.ym.mec.biz.dal.enums.ETencentGroupType;
|
|
import com.ym.mec.biz.dal.enums.ETencentGroupType;
|
|
import com.ym.mec.biz.dal.enums.ETencentImCallbackCommand;
|
|
import com.ym.mec.biz.dal.enums.ETencentImCallbackCommand;
|
|
|
|
+import com.ym.mec.biz.dal.enums.ETencentTRTCCallbackCommand;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
@@ -16,6 +17,7 @@ import lombok.NoArgsConstructor;
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
|
+import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Locale;
|
|
import java.util.Locale;
|
|
|
|
|
|
@@ -25,6 +27,8 @@ import java.util.Locale;
|
|
* @author liujunchi
|
|
* @author liujunchi
|
|
* @date 2023-03-06
|
|
* @date 2023-03-06
|
|
*/
|
|
*/
|
|
|
|
+@NoArgsConstructor
|
|
|
|
+@Data
|
|
public class TencentData {
|
|
public class TencentData {
|
|
|
|
|
|
// 群成员离开之后回调对象
|
|
// 群成员离开之后回调对象
|
|
@@ -451,4 +455,39 @@ public class TencentData {
|
|
private Integer code;
|
|
private Integer code;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @NoArgsConstructor
|
|
|
|
+ @Data
|
|
|
|
+ public static class TRTCEventInfo {
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("事件组")
|
|
|
|
+ private String eventGroupId;
|
|
|
|
+ @ApiModelProperty("事件类型")
|
|
|
|
+ private ETencentTRTCCallbackCommand eventType;
|
|
|
|
+ @ApiModelProperty("事件时间")
|
|
|
|
+ private Date callbackTs;
|
|
|
|
+ @ApiModelProperty("事件消息")
|
|
|
|
+ private EventInfo eventInfo;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Data
|
|
|
|
+ @ApiModel("事件消息")
|
|
|
|
+ public static class EventInfo {
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty("房间号")
|
|
|
|
+ private String roomId;
|
|
|
|
+ @ApiModelProperty("事件发生时间")
|
|
|
|
+ private Date eventTs;
|
|
|
|
+ @ApiModelProperty("事件发生用户")
|
|
|
|
+ private String userId;
|
|
|
|
+ @ApiModelProperty("用户角色")
|
|
|
|
+ private String role;
|
|
|
|
+ @ApiModelProperty("终端类型")
|
|
|
|
+ private String terminalType;
|
|
|
|
+ @ApiModelProperty("用户类型")
|
|
|
|
+ private String userType;
|
|
|
|
+ @ApiModelProperty("原因")
|
|
|
|
+ private String reason;
|
|
|
|
+ }
|
|
}
|
|
}
|