package com.lxzn.nc.controller; import com.lxzn.framework.domain.base.request.NcLogInfoRequest; import com.lxzn.framework.domain.nc.NcLogInfo; import com.lxzn.framework.model.response.QueryPageResponseResult; import com.lxzn.nc.service.INcLogInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * @Description: DNC日志管理 * @Author: * @Date: 2024-12-17 * @Version: V1.0 */ @RestController @RequestMapping("/doc/ncloginfo") public class NcLogInfoController { @Autowired private INcLogInfoService iNcLogInfoService; /** * 日志查询 * @param page * @param size * @param ncLogInfoRequest * @return */ @GetMapping("/find/page/{page}/{size}") public QueryPageResponseResult findPageList(@PathVariable("page") int page, @PathVariable("size") int size, NcLogInfoRequest ncLogInfoRequest) { return iNcLogInfoService.findByPageList(page, size, ncLogInfoRequest); } /** * 导出 * @param ncLogInfoRequest * @return */ @GetMapping("/exportXls") public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response,NcLogInfoRequest ncLogInfoRequest){ return iNcLogInfoService.exportLogList(ncLogInfoRequest); } }