@RestController @RequestMapping(value="/erupt-api") public class EruptUserController extends Object
Constructor and Description |
---|
EruptUserController() |
Modifier and Type | Method and Description |
---|---|
EruptApiModel |
changePwd(String account,
String pwd,
String newPwd,
String newPwd2) |
void |
createCode(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
EruptAppProp |
eruptApp() |
List<EruptMenuVo> |
getMenu() |
LoginModel |
login(String account,
String pwd,
String verifyCode) |
EruptApiModel |
logout(javax.servlet.http.HttpServletRequest request) |
@GetMapping(value="/erupt-app") public EruptAppProp eruptApp()
@RequestMapping(value="/login", method={GET,POST}) public LoginModel login(@RequestParam(value="account") String account, @RequestParam(value="pwd") String pwd, @RequestParam(name="verifyCode",required=false) String verifyCode)
@GetMapping(value="/menu") @EruptRouter(verifyType=LOGIN) public List<EruptMenuVo> getMenu()
@RequestMapping(value="/logout", method={GET,POST}) @EruptRouter(verifyType=LOGIN) public EruptApiModel logout(javax.servlet.http.HttpServletRequest request)
@RequestMapping(value="/change-pwd", method={GET,POST}) @EruptRouter(verifyType=LOGIN) public EruptApiModel changePwd(@RequestParam(value="account") String account, @RequestParam(value="pwd") String pwd, @RequestParam(value="newPwd") String newPwd, @RequestParam(value="newPwd2") String newPwd2)
Copyright © 2022. All rights reserved.