添加微信用户注册和小程序登入的接口

This commit is contained in:
keivn
2021-12-25 14:09:51 +08:00
parent f04023a492
commit 506ca3760b
10 changed files with 1296 additions and 2 deletions

View File

@ -50,6 +50,23 @@ public class SysLoginController
return ajax;
}
/**
* 微信小程序登录方法
* @return 结果
*/
@PostMapping("/weixiMiniLogin")
public AjaxResult weixiMiniLogin()
{
AjaxResult ajax = AjaxResult.success();
// 微信小程序登入生成令牌
String username = "weixi_mini_admin" ;
String password = "qwerasdf123" ;
String token = loginService.login(username, password, "", "");
ajax.put(Constants.TOKEN, token);
return ajax;
}
/**
* 获取用户信息
*