package com.qianwen.smartman.modules.system.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import java.util.Map; import com.qianwen.core.log.model.LogError; import com.qianwen.core.mp.support.Condition; import com.qianwen.core.mp.support.Query; import com.qianwen.core.scanner.modular.annotation.GetResource; import com.qianwen.core.scanner.modular.stereotype.ApiResource; import com.qianwen.core.secure.annotation.PreAuth; import com.qianwen.core.tenant.annotation.NonDS; import com.qianwen.core.tool.api.R; import com.qianwen.smartman.modules.system.constant.SystemFieldConstant; import com.qianwen.smartman.modules.system.service.ILogErrorService; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import springfox.documentation.annotations.ApiIgnore; @ApiIgnore @RestController @ApiResource({"blade-log/error"}) @NonDS @PreAuth /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/controller/LogErrorController.class */ public class LogErrorController { private final ILogErrorService errorLogService; public LogErrorController(final ILogErrorService errorLogService) { this.errorLogService = errorLogService; } @GetResource({"/detail"}) public R detail(LogError logError) { return R.data(this.errorLogService.getOne(Condition.getQueryWrapper(logError))); } @GetResource({"/list"}) public R> list(@RequestParam @ApiIgnore Map logError, Query query) { IPage pages = this.errorLogService.page(Condition.getPage(query.setDescs(SystemFieldConstant.CREATE_TIME)), Condition.getQueryWrapper(logError, LogError.class)); return R.data(pages); } }