package com.mzl.flower.web.log; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.mzl.flower.base.BaseController; import com.mzl.flower.base.R; import com.mzl.flower.base.ReturnDataDTO; import com.mzl.flower.dto.request.log.OperationRecordQueryDTO; import com.mzl.flower.dto.response.log.OperationRecordVO; import com.mzl.flower.service.log.OperationRecordService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author fanghaowei * @version version2.0 * @className OperationRecordController * @date 2024/12/02 * @description 操作日志功能开发 */ @Api(value = "操作日志", tags = "操作日志") @RestController @RequestMapping("/api") @RequiredArgsConstructor public class OperationRecordController extends BaseController { private final OperationRecordService operationRecordService; @GetMapping("/operationRecord/list") @ApiOperation(value = "操作日志列表", httpMethod = "GET") public ResponseEntity>> getOperationRecordList(Page page, OperationRecordQueryDTO dto) { return returnData(R.SUCCESS.getCode(), operationRecordService.queryPage(dto, page)); } }