| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package com.zswl.dataservice.controller.openApi;
- import com.zswl.dataservice.model.openApi.requestLog.OpenApiRequestLogModel;
- import com.zswl.dataservice.model.openApi.requestLog.OpenApiRequestLogSearch;
- import com.zswl.dataservice.model.operLogs.OperationLogsModel;
- import com.zswl.dataservice.model.operLogs.OperationLogsSearchParam;
- import com.zswl.dataservice.service.openApi.OpenApiRequestLogsService;
- import com.zswl.dataservice.service.user.OperationLogsService;
- import com.zswl.dataservice.utils.result.ResultContent;
- import io.swagger.v3.oas.annotations.Operation;
- import io.swagger.v3.oas.annotations.Parameter;
- import io.swagger.v3.oas.annotations.tags.Tag;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.data.domain.Page;
- import org.springframework.data.domain.Pageable;
- import org.springframework.data.web.PageableDefault;
- import org.springframework.validation.annotation.Validated;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * openAPI日志管理 服务
- *
- * @author TRX
- * @date 2024/3/21
- */
- @RequestMapping("/openApiRequestLog")
- @RestController
- @Validated
- @Tag(name = "openAPI日志管理")
- public class OpenApiRequestLogController {
- @Autowired
- OpenApiRequestLogsService openApiRequestLogsService;
- @Operation(summary = "访问请求列表-分页查询")
- @RequestMapping(value = {"page"}, method = {RequestMethod.POST})
- public ResultContent<Page<OpenApiRequestLogModel>> page(
- @Parameter(hidden = true) @PageableDefault(page = 0, size = 10) Pageable pageable,
- @Parameter(required = false) OpenApiRequestLogSearch param) {
- return openApiRequestLogsService.pageLogs(pageable, param);
- }
- }
|