From a8d43c9cd831282dd23214c4f9ff27c6d05d6613 Mon Sep 17 00:00:00 2001
From: peternameyakj <908253177@qq.com>
Date: Mon, 15 Jul 2024 16:52:53 +0800
Subject: [PATCH] 最大代理等级的配置
---
src/main/java/com/nq/controller/backend/UserPurchaseApplicationController.java | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/nq/controller/backend/UserPurchaseApplicationController.java b/src/main/java/com/nq/controller/backend/UserPurchaseApplicationController.java
new file mode 100644
index 0000000..2ad7233
--- /dev/null
+++ b/src/main/java/com/nq/controller/backend/UserPurchaseApplicationController.java
@@ -0,0 +1,34 @@
+package com.nq.controller.backend;
+
+import com.nq.common.ServerResponse;
+import com.nq.service.IUserPurchaseApplicationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletRequest;
+
+@Controller
+@RequestMapping({"/admin/purchase/"})
+public class UserPurchaseApplicationController {
+
+ @Autowired
+ private IUserPurchaseApplicationService purchaseApplicationService;
+
+ //分页查VIP抢筹配置
+ @GetMapping({"list.do"})
+ @ResponseBody
+ public ServerResponse list(@RequestParam("keywords") String keyword,@RequestParam("status") Integer status, @RequestParam(value = "pageNum", defaultValue = "1") int pageNum, @RequestParam(value = "pageSize", defaultValue = "10") int pageSize) {
+ return purchaseApplicationService.list(keyword,status,pageNum, pageSize);
+ }
+ /**
+ * 管理员审核挂单
+ * @param id
+ * @return
+ */
+ @PostMapping({"examine.do"})
+ @ResponseBody
+ public ServerResponse examine(Integer id, HttpServletRequest request) {
+ return purchaseApplicationService.examine(id,request);
+ }
+}
--
Gitblit v1.9.3