File tree Expand file tree Collapse file tree
example/example_svc/src/main/java/com/github/cadecode/uniboot/example/svc/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package com .github .cadecode .uniboot .example .svc .controller ;
2+
3+ import com .github .cadecode .uniboot .common .plugin .log .annotation .ApiLogger ;
4+ import com .github .cadecode .uniboot .framework .api .consts .LogTypeConst ;
5+ import com .github .cadecode .uniboot .framework .base .annotation .ApiFormat ;
6+ import io .swagger .annotations .Api ;
7+ import io .swagger .annotations .ApiOperation ;
8+ import lombok .RequiredArgsConstructor ;
9+ import lombok .extern .slf4j .Slf4j ;
10+ import org .springframework .web .bind .annotation .GetMapping ;
11+ import org .springframework .web .bind .annotation .RequestMapping ;
12+ import org .springframework .web .bind .annotation .RestController ;
13+
14+ /**
15+ * 日志测试
16+ *
17+ * @author Cade Li
18+ * @since 2023/8/18
19+ */
20+ @ ApiFormat
21+ @ Slf4j
22+ @ RequiredArgsConstructor
23+ @ Api (tags = "日志测试" )
24+ @ RestController
25+ @ RequestMapping ("demo/log" )
26+ public class LogExampleController {
27+
28+ @ ApiLogger (type = LogTypeConst .QUERY , description = "测试查询log" ,enableSave = true )
29+ @ ApiOperation ("测试查询log" )
30+ @ GetMapping ("query" )
31+ public String query () {
32+ return "OK" ;
33+ }
34+ }
You can’t perform that action at this time.
0 commit comments