@RestController @RequestMapping(value="/erupt-api") public class EruptUserController extends Object
| 构造器和说明 |
|---|
EruptUserController() |
| 限定符和类型 | 方法和说明 |
|---|---|
EruptApiModel |
changePwd(String account,
String pwd,
String newPwd,
String newPwd2)
修改密码
|
void |
createCode(String account,
javax.servlet.http.HttpServletResponse response)
生成验证码
|
List<EruptMenuVo> |
getMenu() |
LoginModel |
login(String account,
String pwd,
String verifyCode,
javax.servlet.http.HttpServletRequest request) |
EruptApiModel |
logout(javax.servlet.http.HttpServletRequest request) |
@PostMapping(value="/login") @ResponseBody public LoginModel login(@RequestParam(value="account") String account, @RequestParam(value="pwd") String pwd, @RequestParam(name="verifyCode",required=false) String verifyCode, javax.servlet.http.HttpServletRequest request)
@GetMapping(value="/menu") @ResponseBody @EruptRouter(verifyType=LOGIN, authIndex=0) public List<EruptMenuVo> getMenu()
@PostMapping(value="/logout") @ResponseBody @EruptRouter(verifyType=LOGIN, authIndex=0) public EruptApiModel logout(javax.servlet.http.HttpServletRequest request)
@PostMapping(value="/change-pwd") @ResponseBody @EruptRouter(verifyType=LOGIN, authIndex=0) public EruptApiModel changePwd(@RequestParam(value="account") String account, @RequestParam(value="pwd") String pwd, @RequestParam(value="newPwd") String newPwd, @RequestParam(value="newPwd2") String newPwd2)
account - 用户名pwd - 密码newPwd - 新密码newPwd2 - 确认新密码Copyright © 2020. All rights reserved.