|
|
@ -106,7 +106,7 @@ public class AdminController { |
|
|
|
|
|
|
|
@PostMapping("/addWhiteList") |
|
|
|
@RestApi |
|
|
|
public R<Void> addWhiteList(@RequestParam String deviceId, @RequestParam String channel){ |
|
|
|
public R<Void> addWhiteList(@RequestParam String deviceId, @RequestParam String channel) { |
|
|
|
adminService.addWhiteList(deviceId, channel); |
|
|
|
return new R<>(R.CODE_SUCCESS, "ok", null); |
|
|
|
} |
|
|
@ -145,6 +145,12 @@ public class AdminController { |
|
|
|
@RestApi |
|
|
|
public R<STSInfo> getSTS() { |
|
|
|
return new R<>(ossService.getSTS(RequestContext.getAdminID())); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/mock") |
|
|
|
@RestApi |
|
|
|
public R<Void> mock(@RequestParam Integer start, @RequestParam Integer end) { |
|
|
|
adminService.mock(start, end); |
|
|
|
return new R<>(R.CODE_SUCCESS, "ok", null); |
|
|
|
} |
|
|
|
} |
|
|
|