package com.farriver.bwf.web.controller.admin.system; import com.farriver.bwf.common.model.ApiPageData; import com.farriver.bwf.common.statics.LangConstants; import com.farriver.bwf.data.transferobject.queryobject.system.SystemLogQueryObject; import com.farriver.bwf.service.system.SystemLogService; import com.farriver.bwf.web.controller.admin.AdminControllerBase; import jakarta.annotation.Resource; 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; @RestController @RequestMapping("/api/admin/system/log") public class SystemLogController extends AdminControllerBase { @Resource SystemLogService systemLogService; @PostMapping("/list") public ApiPageData getLogs(@RequestBody SystemLogQueryObject queryObject) { if (queryObject == null) { return ApiPageData.error(LangConstants.MSG_ERROR_PARAMETERS); } return systemLogService.GetViewPageList(queryObject); } }