package com.hdkj.lt.bf.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.hdkj.lt.core.log.model.dto.LogInfoDTO;
import com.hdkj.lt.core.log.model.param.LogInfoVO;
import com.hdkj.lt.core.log.service.FhzgLogInfoService;
import com.hdkj.lt.core.mvc.BaseController;
import com.hdkj.hussar.ApiResponse;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: LiuAini
 * @Date: 2025/7/18 10:06
 * @Version: v1.0
 */
@RestController
@RequestMapping("/fhzg/log")
@RequiredArgsConstructor
public class FhzgLogController  extends BaseController {

    private final FhzgLogInfoService fhzgLogInfoService;

    @PostMapping("/pageList")
    @ApiOperation(value = "日志分析分页查询")
    public ApiResponse<Page<LogInfoDTO>> pageList(@RequestBody LogInfoVO logInfoVO) {
        Page<LogInfoDTO> result = fhzgLogInfoService.listPage(logInfoVO);
        return ApiResponse.success(result);
    }
}
