|
@@ -2,6 +2,10 @@ package com.ruoyi.web.work.controller;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
+
|
|
|
+import com.ruoyi.common.annotation.Anonymous;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+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;
|
|
@@ -23,13 +27,17 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
* @author lsw
|
|
|
* @date 2024-07-19
|
|
|
*/
|
|
|
+@Api(tags = "诊断管理")
|
|
|
+@Anonymous
|
|
|
@RestController
|
|
|
@RequestMapping("/work/dg")
|
|
|
public class DgController extends BaseController {
|
|
|
@Autowired
|
|
|
private IDgService dgService;
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:dg:list')")
|
|
|
+ @ApiOperation(value = "获取诊断列表")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:dg:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(Dg dg){
|
|
|
startPage();
|
|
@@ -37,27 +45,31 @@ public class DgController extends BaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:dg:query')")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:dg:query')")
|
|
|
@GetMapping(value = "/detail/{id}")
|
|
|
public AjaxResult detail(@PathVariable("id") Long id){
|
|
|
return AjaxResult.success(dgService.getById(id));
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:dg:add')")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:dg:add')")
|
|
|
@Log(title = "诊断", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
public AjaxResult add(@RequestBody Dg dg){
|
|
|
return toAjax(dgService.save(dg));
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:dg:edit')")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:dg:edit')")
|
|
|
@Log(title = "诊断", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/edit")
|
|
|
public AjaxResult edit(@RequestBody Dg dg){
|
|
|
return toAjax(dgService.updateById(dg));
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:dg:remove')")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:dg:remove')")
|
|
|
@Log(title = "诊断", businessType = BusinessType.DELETE)
|
|
|
@GetMapping("/remove/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids){
|