From 1c7cf1b77752acd7ccc4bc98bec16ff22d629d17 Mon Sep 17 00:00:00 2001 From: pk9tv8hgp <1215904376@qq.com> Date: Mon, 24 Apr 2023 13:09:24 +0800 Subject: [PATCH] Add AdminEmailAndUserController --- AdminEmailAndUserController | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 AdminEmailAndUserController diff --git a/AdminEmailAndUserController b/AdminEmailAndUserController new file mode 100644 index 0000000..e01c68c --- /dev/null +++ b/AdminEmailAndUserController @@ -0,0 +1,36 @@ +package com.controller.admin; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; + +import com.service.admin.AdminEmailAndUserService; + +@Controller +@RequestMapping("/admin") +public class AdminEmailAndUserController extends BaseController{ + @Autowired + private AdminEmailAndUserService adminEmailAndUserService; + @RequestMapping("/selectEmail") + public String selectAllEmail(Model model) { + return adminEmailAndUserService.selectAllEmail(model); + } + @RequestMapping("/delete") + public String delete(Integer id) { + return adminEmailAndUserService.delete(id); + } + @RequestMapping("/selectUser") + public String selectUser(Model model) { + return adminEmailAndUserService.selectBuserEmail(model); + } + @RequestMapping("/lock") + public String lock(Integer id) { + return adminEmailAndUserService.lock(id); + } + @RequestMapping("/unLock") + public String unLock(Integer id) { + return adminEmailAndUserService.unLock(id); + } + +} \ No newline at end of file