yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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<LogError> detail(LogError logError) {
        return R.data(this.errorLogService.getOne(Condition.getQueryWrapper(logError)));
    }
 
    @GetResource({"/list"})
    public R<IPage<LogError>> list(@RequestParam @ApiIgnore Map<String, Object> logError, Query query) {
        IPage<LogError> pages = this.errorLogService.page(Condition.getPage(query.setDescs(SystemFieldConstant.CREATE_TIME)), Condition.getQueryWrapper(logError, LogError.class));
        return R.data(pages);
    }
}