forked from p4fmevgyr/XYSH
parent
9c3c368a53
commit
1c7cf1b777
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue