fix(多租户):多租户数据接口和数据表结构,noIgnoreSqls逻辑添加
This commit is contained in:
+8
-2
@@ -1,6 +1,7 @@
|
||||
package com.central.device.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.central.common.model.Result;
|
||||
import com.central.device.service.LiveStreamService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -13,8 +14,13 @@ public class LiveStreamController {
|
||||
@Autowired
|
||||
private LiveStreamService liveStreamService;
|
||||
|
||||
@GetMapping("/stream-urls")
|
||||
public JSONObject getStreamUrls(@RequestParam String deviceId) {
|
||||
@GetMapping("/live/stream-urls")
|
||||
public JSONObject getJsonStreamUrls(@RequestParam String deviceId) {
|
||||
return liveStreamService.generateStreamUrls(deviceId);
|
||||
}
|
||||
|
||||
@GetMapping("/stream-urls")
|
||||
public Result<JSONObject> getStreamUrls(@RequestParam String deviceId) {
|
||||
return Result.succeed(liveStreamService.generateStreamUrls(deviceId));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user