|
@@ -12,7 +12,6 @@ import com.diagbot.facade.SysLogFacade;
|
|
import com.diagbot.vo.SysLogVo;
|
|
import com.diagbot.vo.SysLogVo;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
@@ -39,7 +38,6 @@ public class SysLogController {
|
|
private SysLogFacade sysLogFacade;
|
|
private SysLogFacade sysLogFacade;
|
|
|
|
|
|
@ApiOperation(value = "添加日志", notes = "添加日志")
|
|
@ApiOperation(value = "添加日志", notes = "添加日志")
|
|
- @PreAuthorize("hasRole('USER')")
|
|
|
|
@PostMapping("/add")
|
|
@PostMapping("/add")
|
|
@SysLogger("postLog")
|
|
@SysLogger("postLog")
|
|
public RespDTO add(@RequestBody SysLogVo sysLogVo){
|
|
public RespDTO add(@RequestBody SysLogVo sysLogVo){
|
|
@@ -53,7 +51,6 @@ public class SysLogController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "删除日志", notes = "删除日志")
|
|
@ApiOperation(value = "删除日志", notes = "删除日志")
|
|
- @PreAuthorize("hasRole('USER')")
|
|
|
|
@DeleteMapping("/delete/{id}")
|
|
@DeleteMapping("/delete/{id}")
|
|
@SysLogger("deleteLog")
|
|
@SysLogger("deleteLog")
|
|
public RespDTO delete(@PathVariable(value = "id") Integer id){
|
|
public RespDTO delete(@PathVariable(value = "id") Integer id){
|
|
@@ -61,7 +58,6 @@ public class SysLogController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "修改日志", notes = "修改日志")
|
|
@ApiOperation(value = "修改日志", notes = "修改日志")
|
|
- @PreAuthorize("hasRole('USER')")
|
|
|
|
@PostMapping("/update")
|
|
@PostMapping("/update")
|
|
@SysLogger("updateLog")
|
|
@SysLogger("updateLog")
|
|
public RespDTO update(@RequestBody SysLog student){
|
|
public RespDTO update(@RequestBody SysLog student){
|
|
@@ -69,7 +65,6 @@ public class SysLogController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取日志列表", notes = "获取日志列表")
|
|
@ApiOperation(value = "获取日志列表", notes = "获取日志列表")
|
|
- @PreAuthorize("hasRole('USER')")
|
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
@SysLogger("listLog")
|
|
@SysLogger("listLog")
|
|
public RespDTO list(){
|
|
public RespDTO list(){
|
|
@@ -78,7 +73,6 @@ public class SysLogController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取日志翻页信息", notes = "获取日志翻页信息")
|
|
@ApiOperation(value = "获取日志翻页信息", notes = "获取日志翻页信息")
|
|
- @PreAuthorize("hasRole('USER')")
|
|
|
|
@GetMapping("/page")
|
|
@GetMapping("/page")
|
|
@SysLogger("pageLog")
|
|
@SysLogger("pageLog")
|
|
public RespDTO page() {
|
|
public RespDTO page() {
|