From 2e3e5becd5d703823ce156ca55ef5d9807790f27 Mon Sep 17 00:00:00 2001 From: p87sjbg3f <1239676507@qq.com> Date: Fri, 28 Jun 2024 20:27:47 +0800 Subject: [PATCH] ADD file via upload --- SystemCheckController.java | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 SystemCheckController.java diff --git a/SystemCheckController.java b/SystemCheckController.java new file mode 100644 index 0000000..80026c4 --- /dev/null +++ b/SystemCheckController.java @@ -0,0 +1,31 @@ +package com.qsd.orange.controller; + +import com.qsd.orange.global.R; +import com.qsd.orange.service.CheckService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@RequestMapping("system/check") +public class SystemCheckController { + + @Autowired + private CheckService checkService; + + @GetMapping("all") + public R all( + @RequestParam(value = "page", required = false, defaultValue = "1") Integer page, + @RequestParam(value = "limit", required = false, defaultValue = "9") Integer limit + ){ + return R.success().page(checkService.all(page, limit)); + } + + @GetMapping("search") + public R search(String id){ + return R.success().data("item", checkService.search(id)); + } + +}