#update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.maibu.config;
|
||||
|
||||
import com.fastbee.common.core.redis.RedisCache;
|
||||
import com.maibu.core.redis.RedisCache;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.redis.connection.RedisConnection;
|
||||
@@ -10,8 +10,9 @@ import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
import static com.fastbee.util.Constants.SRS_KICK_URL;
|
||||
import static com.fastbee.util.Constants.SRS_REDIS_STREAM;
|
||||
import static com.maibu.util.Constants.SRS_KICK_URL;
|
||||
import static com.maibu.util.Constants.SRS_REDIS_STREAM;
|
||||
|
||||
|
||||
@Component
|
||||
public class SrsRedisKeyEventListener implements InitializingBean {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.maibu.controller;
|
||||
|
||||
import com.fastbee.dto.SrsHookRequest;
|
||||
import com.fastbee.service.PlaySessionService;
|
||||
import com.maibu.dto.SrsHookRequest;
|
||||
import com.maibu.service.PlaySessionService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
public class SrsHookController {
|
||||
|
||||
@Autowired
|
||||
PlaySessionService playSessionService;
|
||||
PlaySessionService playSessionService;
|
||||
|
||||
@PostMapping("/on_play")
|
||||
public int onPlay(@RequestBody SrsHookRequest req) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.maibu.service;
|
||||
|
||||
import com.fastbee.dto.SrsHookRequest;
|
||||
import com.maibu.dto.SrsHookRequest;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
public interface PlaySessionService {
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
package com.maibu.service.impl;
|
||||
|
||||
import com.fastbee.common.core.domain.model.LoginUser;
|
||||
import com.fastbee.common.core.redis.RedisCache;
|
||||
import com.fastbee.dto.SrsHookRequest;
|
||||
import com.fastbee.framework.web.service.TokenService;
|
||||
import com.fastbee.service.PlaySessionService;
|
||||
import com.fastbee.util.TokenUtil;
|
||||
import com.maibu.core.domain.model.LoginUser;
|
||||
import com.maibu.core.redis.RedisCache;
|
||||
import com.maibu.dto.SrsHookRequest;
|
||||
import com.maibu.service.PlaySessionService;
|
||||
import com.maibu.util.TokenUtil;
|
||||
import com.maibu.web.service.TokenService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import static com.fastbee.util.Constants.SRS_REDIS_STREAM;
|
||||
import static com.maibu.util.Constants.SRS_REDIS_STREAM;
|
||||
|
||||
|
||||
@Service
|
||||
public class PlaySessionServiceImpl implements PlaySessionService {
|
||||
|
||||
Reference in New Issue
Block a user