|
@@ -4,6 +4,7 @@ import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import com.ruoyi.sim.service.impl.SimService;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -34,11 +35,9 @@ public class SimController extends BaseController {
|
|
|
@Autowired
|
|
|
private SimService simService;
|
|
|
|
|
|
- /**
|
|
|
- * 查询模拟器列表
|
|
|
- */
|
|
|
- @PreAuthorize("@ss.hasPermi('sim:sim:list')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:sim:list')")
|
|
|
@GetMapping("/list")
|
|
|
+ @ApiOperation("[分页]查询模拟器列表")
|
|
|
public TableDataInfo list(Sim sim) {
|
|
|
startPage();
|
|
|
List<Sim> list = simService.selectSimList(sim);
|
|
@@ -48,9 +47,9 @@ public class SimController extends BaseController {
|
|
|
/**
|
|
|
* 导出模拟器列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('sim:sim:export')")
|
|
|
- @Log(title = "模拟器", businessType = BusinessType.EXPORT)
|
|
|
- @PostMapping("/export")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:sim:export')")
|
|
|
+ // @Log(title = "模拟器", businessType = BusinessType.EXPORT)
|
|
|
+ // @PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, Sim sim) {
|
|
|
List<Sim> list = simService.selectSimList(sim);
|
|
|
ExcelUtil<Sim> util = new ExcelUtil<Sim>(Sim.class);
|
|
@@ -60,7 +59,7 @@ public class SimController extends BaseController {
|
|
|
/**
|
|
|
* 获取模拟器详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('sim:sim:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:sim:query')")
|
|
|
@GetMapping(value = "/{simId}")
|
|
|
public AjaxResult getInfo(@PathVariable("simId") Long simId) {
|
|
|
return success(simService.selectSimBySimId(simId));
|
|
@@ -69,9 +68,9 @@ public class SimController extends BaseController {
|
|
|
/**
|
|
|
* 新增模拟器
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('sim:sim:add')")
|
|
|
- @Log(title = "模拟器", businessType = BusinessType.INSERT)
|
|
|
- @PostMapping
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:sim:add')")
|
|
|
+ // @Log(title = "模拟器", businessType = BusinessType.INSERT)
|
|
|
+ // @PostMapping
|
|
|
public AjaxResult add(@RequestBody Sim sim) {
|
|
|
return toAjax(simService.insertSim(sim));
|
|
|
}
|
|
@@ -79,9 +78,9 @@ public class SimController extends BaseController {
|
|
|
/**
|
|
|
* 修改模拟器
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('sim:sim:edit')")
|
|
|
- @Log(title = "模拟器", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:sim:edit')")
|
|
|
+ // @Log(title = "模拟器", businessType = BusinessType.UPDATE)
|
|
|
+ // @PutMapping
|
|
|
public AjaxResult edit(@RequestBody Sim sim) {
|
|
|
return toAjax(simService.updateSim(sim));
|
|
|
}
|
|
@@ -89,9 +88,9 @@ public class SimController extends BaseController {
|
|
|
/**
|
|
|
* 删除模拟器
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('sim:sim:remove')")
|
|
|
- @Log(title = "模拟器", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("/{simIds}")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:sim:remove')")
|
|
|
+ // @Log(title = "模拟器", businessType = BusinessType.DELETE)
|
|
|
+ // @DeleteMapping("/{simIds}")
|
|
|
public AjaxResult remove(@PathVariable Long[] simIds) {
|
|
|
return toAjax(simService.deleteSimBySimIds(simIds));
|
|
|
}
|