fix: 操作日志

V0.5.x
jay 2023-06-13 18:30:52 +08:00
parent 603024538d
commit 3c357d540a
1 changed files with 5 additions and 4 deletions

View File

@ -2,6 +2,7 @@ package cc.iotkit.system.controller;
import cc.iotkit.common.api.PageRequest;
import cc.iotkit.common.api.Paging;
import cc.iotkit.common.api.Request;
import cc.iotkit.common.excel.utils.ExcelUtil;
import cc.iotkit.common.log.annotation.Log;
import cc.iotkit.common.log.enums.BusinessType;
@ -57,14 +58,14 @@ public class SysOperlogController extends BaseController {
/**
*
* @param operIds ids
*/
@ApiOperation("批量删除操作日志记录")
@Log(title = "操作日志", businessType = BusinessType.DELETE)
@SaCheckPermission("monitor:operlog:remove")
@PostMapping("/{operIds}")
public void remove(@PathVariable Long[] operIds) {
operLogService.deleteOperLogByIds(List.of(operIds));
@PostMapping("/delete")
public void remove(@Validated @RequestBody Request<List<Long>> bo) {
List<Long> operIds = bo.getData();
operLogService.deleteOperLogByIds(operIds);
}
/**