|
|
|
@ -11,6 +11,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
import jakarta.validation.Valid;
|
|
|
|
import jakarta.validation.Valid;
|
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
|
import org.springframework.cloud.openfeign.SpringQueryMap;
|
|
|
|
import org.springframework.cloud.openfeign.SpringQueryMap;
|
|
|
|
|
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
@ -25,6 +26,16 @@ public interface OperateLogApi {
|
|
|
|
@Operation(summary = "创建操作日志")
|
|
|
|
@Operation(summary = "创建操作日志")
|
|
|
|
CommonResult<Boolean> createOperateLog(@Valid @RequestBody OperateLogCreateReqDTO createReqDTO);
|
|
|
|
CommonResult<Boolean> createOperateLog(@Valid @RequestBody OperateLogCreateReqDTO createReqDTO);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 【异步】创建操作日志
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param createReqDTO 请求
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Async
|
|
|
|
|
|
|
|
default void createOperateLogAsync(OperateLogCreateReqDTO createReqDTO) {
|
|
|
|
|
|
|
|
createOperateLog(createReqDTO).checkError();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping(PREFIX + "/page")
|
|
|
|
@GetMapping(PREFIX + "/page")
|
|
|
|
@Operation(summary = "获取指定模块的指定数据的操作日志分页")
|
|
|
|
@Operation(summary = "获取指定模块的指定数据的操作日志分页")
|
|
|
|
CommonResult<PageResult<OperateLogRespDTO>> getOperateLogPage(@SpringQueryMap OperateLogPageReqDTO pageReqDTO);
|
|
|
|
CommonResult<PageResult<OperateLogRespDTO>> getOperateLogPage(@SpringQueryMap OperateLogPageReqDTO pageReqDTO);
|
|
|
|
|