|
@@ -46,6 +46,7 @@ public class SceneController extends BaseController {
|
|
|
@SaIgnore
|
|
|
@GetMapping("/test")
|
|
|
@RedisLimit(limitCount = 1, period = 1)
|
|
|
+ @ValidateApi(method = "scene:test")
|
|
|
// @ValidateApi(method = "scene:getSceneList")
|
|
|
public ResultData test() throws InterruptedException {
|
|
|
return ResultData.ok();
|
|
@@ -57,6 +58,7 @@ public class SceneController extends BaseController {
|
|
|
*/
|
|
|
@SaIgnore
|
|
|
@PostMapping("/getSceneList")
|
|
|
+ @RedisLimit(limitCount = 1, period = 1)
|
|
|
@ValidateApi(method = "scene:getSceneList")
|
|
|
public ResultData getScenesByUsername(@RequestBody PageScenesParamVo param) {
|
|
|
PageInfo pageInfo = scenePlusService.getScenesByUserId(this.getUserId(),param);
|
|
@@ -69,6 +71,7 @@ public class SceneController extends BaseController {
|
|
|
*/
|
|
|
@SaIgnore
|
|
|
@PostMapping("/getScenePointInfo")
|
|
|
+ @RedisLimit(limitCount = 1, period = 1)
|
|
|
@ValidateApi(method = "scene:getScenePointInfo")
|
|
|
public ResultData getScenePointInfo(@RequestBody @Validated BaseSceneParamVo param) {
|
|
|
ScenePlus scenePlus = scenePlusService.getByNumAndUserId(this.getUserId(), param.getSceneCode());
|
|
@@ -87,6 +90,7 @@ public class SceneController extends BaseController {
|
|
|
*/
|
|
|
@SaIgnore
|
|
|
@PostMapping("/getSceneObj")
|
|
|
+ @RedisLimit(limitCount = 1, period = 1)
|
|
|
@ValidateApi(method = "scene:getSceneObj")
|
|
|
public ResultData getSceneObjFiles(@RequestBody @Validated BaseSceneParamVo param) {
|
|
|
ScenePlus scenePlus = scenePlusService.getByNumAndUserId(this.getUserId(), param.getSceneCode());
|
|
@@ -102,6 +106,7 @@ public class SceneController extends BaseController {
|
|
|
*/
|
|
|
@SaIgnore
|
|
|
@PostMapping("/getScenePanorama")
|
|
|
+ @RedisLimit(limitCount = 1, period = 1)
|
|
|
@ValidateApi(method = "scene:getScenePanorama")
|
|
|
public ResultData getScenePanoramicImageFiles(@RequestBody @Validated BaseSceneParamVo param) {
|
|
|
ScenePlus scenePlus = scenePlusService.getByNumAndUserId(this.getUserId(), param.getSceneCode());
|
|
@@ -117,6 +122,7 @@ public class SceneController extends BaseController {
|
|
|
*/
|
|
|
@SaIgnore
|
|
|
@PostMapping("/getSceneViewUserFile")
|
|
|
+ @RedisLimit(limitCount = 1, period = 30)
|
|
|
@ValidateApi(method = "scene:getSceneViewUserFile")
|
|
|
public ResultData getSceneViewUserFile(@RequestBody @Validated BaseSceneParamVo param) {
|
|
|
return ResultData.ok(scenePlusService.getSceneViewUserFile(param.getSceneCode(), this.getUserId()));
|