|
@@ -63,7 +63,6 @@ public class SimController extends BaseController {
|
|
|
* 新增模拟器
|
|
|
*/
|
|
|
// @PreAuthorize("@ss.hasPermi('sim:sim:add')")
|
|
|
- // @Log(title = "模拟器", businessType = BusinessType.INSERT)
|
|
|
// @PostMapping
|
|
|
public AjaxResult add(@RequestBody Sim sim) {
|
|
|
return toAjax(simService.insertSim(sim));
|
|
@@ -73,7 +72,6 @@ public class SimController extends BaseController {
|
|
|
* 修改模拟器
|
|
|
*/
|
|
|
// @PreAuthorize("@ss.hasPermi('sim:sim:edit')")
|
|
|
- // @Log(title = "模拟器", businessType = BusinessType.UPDATE)
|
|
|
// @PutMapping
|
|
|
public AjaxResult edit(@RequestBody Sim sim) {
|
|
|
return toAjax(simService.updateSim(sim));
|
|
@@ -82,8 +80,6 @@ public class SimController extends BaseController {
|
|
|
/**
|
|
|
* 删除模拟器
|
|
|
*/
|
|
|
- // @PreAuthorize("@ss.hasPermi('sim:sim:remove')")
|
|
|
- // @Log(title = "模拟器", businessType = BusinessType.DELETE)
|
|
|
// @DeleteMapping("/{simIds}")
|
|
|
public AjaxResult remove(@PathVariable Long[] simIds) {
|
|
|
return toAjax(simService.deleteSimBySimIds(simIds));
|
|
@@ -96,4 +92,10 @@ public class SimController extends BaseController {
|
|
|
public AjaxResult listAllEnable() {
|
|
|
return simService.listAllEnableAj();
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/listAllEnable")
|
|
|
+ @ApiOperation("获取所有在线的模拟器列表")
|
|
|
+ public AjaxResult listAllOnline() {
|
|
|
+ return simService.listAllOnlineAj();
|
|
|
+ }
|
|
|
}
|