| | |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.modules.system.service.ILogApiService; |
| | | import org.springblade.modules.system.entity.LogApiExt; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | * 查询单条 |
| | | */ |
| | | @GetMapping("/detail") |
| | | public R<LogApi> detail(LogApi log) { |
| | | public R<LogApi> detail(LogApiExt log) { |
| | | return R.data(logService.getOne(Condition.getQueryWrapper(log))); |
| | | } |
| | | |
| | |
| | | * 查询多条(分页) |
| | | */ |
| | | @GetMapping("/list") |
| | | public R<IPage<LogApi>> list(@ApiIgnore @RequestParam Map<String, Object> log, Query query) { |
| | | IPage<LogApi> pages = logService.page(Condition.getPage(query.setDescs("create_time")), Condition.getQueryWrapper(log, LogApi.class)); |
| | | public R<IPage<LogApiExt>> list(@ApiIgnore @RequestParam Map<String, Object> log, Query query) { |
| | | IPage<LogApiExt> pages = logService.page(Condition.getPage(query.setDescs("create_time")), Condition.getQueryWrapper(log, LogApiExt.class)); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 查询多条(自定义分页) |
| | | * @param logApi |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @GetMapping("/page") |
| | | public R<IPage<LogApiExt>> selectLogApiExtPage(LogApiExt logApi, Query query) { |
| | | IPage<LogApiExt> pages = logService.selectLogApiExtPage(Condition.getPage(query), logApi); |
| | | return R.data(pages); |
| | | } |
| | | |