| | |
| | | import com.emergencyrepair.business.entity.TeamMajor; |
| | | import com.emergencyrepair.common.Result; |
| | | import com.emergencyrepair.system.entity.SysMenu; |
| | | import com.emergencyrepair.system.entity.SysErrorLog; |
| | | import com.emergencyrepair.system.entity.SysLoginLog; |
| | | import com.emergencyrepair.system.entity.SysOperationLog; |
| | | import com.emergencyrepair.system.entity.SysRole; |
| | |
| | | return Result.ok(systemService.operationLogPage(current, size, keyword, module, operationType, startDate, endDate)); |
| | | } |
| | | |
| | | @GetMapping("/error-logs") |
| | | public Result<Page<SysErrorLog>> errorLogs(@RequestParam(defaultValue = "1") int current, |
| | | @RequestParam(defaultValue = "20") int size, |
| | | @RequestParam(required = false) String keyword, |
| | | @RequestParam(required = false) String module, |
| | | @RequestParam(required = false) String exceptionType, |
| | | @RequestParam(required = false) String startDate, |
| | | @RequestParam(required = false) String endDate) { |
| | | return Result.ok(systemService.errorLogPage(current, size, keyword, module, exceptionType, startDate, endDate)); |
| | | } |
| | | |
| | | @GetMapping("/error-logs/{id}") |
| | | public Result<SysErrorLog> errorLog(@PathVariable Long id) { |
| | | return Result.ok(systemService.errorLog(id)); |
| | | } |
| | | |
| | | @PostMapping("/menu") |
| | | public Result<SysMenu> createMenu(@RequestBody SysMenu menu) { |
| | | menu.setId(null); |