updates
This commit is contained in:
parent
724c7ef504
commit
0e0b01055c
|
|
@ -10,6 +10,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.constant.CacheConstant;
|
||||
import org.jeecg.common.constant.CommonConstant;
|
||||
import org.jeecg.common.exception.JeecgBootException;
|
||||
|
|
@ -206,6 +207,7 @@ public class MiniUserController {
|
|||
|
||||
@ApiOperation(value = "v1微信手机登录")
|
||||
@PostMapping("/v1/wechatLogin")
|
||||
@AutoLog(value = "小程序用户-微信登录")
|
||||
public Result<?> v1WechatLogin(@NotNull @RequestBody WxModel wxModel) {
|
||||
String programType = wxModel.getProgramType();
|
||||
AssertUtils.notEmpty(programType,"平台参数错误");
|
||||
|
|
@ -284,6 +286,7 @@ public class MiniUserController {
|
|||
|
||||
@ApiOperation("v1抖音-登录接口")
|
||||
@PostMapping("/v1/dyLogin")
|
||||
@AutoLog(value = "小程序用户-抖音登录")
|
||||
public Result<?> v1dyLogin(@RequestBody DyLoginVo vo) {
|
||||
String programType = vo.getProgramType();
|
||||
AssertUtils.notEmpty(programType,"平台参数错误");
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import io.swagger.annotations.ApiOperation;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.constant.CommonConstant;
|
||||
import org.jeecg.common.system.vo.LoginUser;
|
||||
import org.jeecg.common.util.*;
|
||||
|
|
@ -27,7 +28,7 @@ import java.util.Date;
|
|||
*/
|
||||
@RequestMapping("/web/user")
|
||||
@RestController
|
||||
@Api(tags = "前台用户接口")
|
||||
@Api(tags = "网站前台用户接口")
|
||||
@Slf4j
|
||||
public class WebUserController {
|
||||
@Resource
|
||||
|
|
@ -43,6 +44,7 @@ public class WebUserController {
|
|||
|
||||
@RequestMapping(value = "register",method = RequestMethod.POST)
|
||||
@ApiOperation(value = "账号注册")
|
||||
@AutoLog(value = "网站前台-账号注册")
|
||||
public Result<?> register(@RequestBody SysLoginModel sysLoginModel, HttpServletRequest request){
|
||||
String ipAddr = IpUtils.getIpAddr(request);
|
||||
String phone = sysLoginModel.getPhone();
|
||||
|
|
@ -78,6 +80,7 @@ public class WebUserController {
|
|||
|
||||
@RequestMapping(value = "passwordChanger",method = RequestMethod.POST)
|
||||
@ApiOperation(value = "更改密码")
|
||||
@AutoLog(value = "网站前台-更改密码")
|
||||
public Result<?> passwordChanger(@RequestBody SysLoginModel sysLoginModel, HttpServletRequest request){
|
||||
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
String oldPassword = sysLoginModel.getOldPassword();//输入的旧密码
|
||||
|
|
@ -110,6 +113,7 @@ public class WebUserController {
|
|||
|
||||
@RequestMapping(value = "/login/passwd", method = RequestMethod.POST)
|
||||
@ApiOperation(value = "手机号密码登录")
|
||||
@AutoLog(value = "网站前台-账号登录")
|
||||
public Result<?> loginPasswd(@RequestBody SysLoginModel sysLoginModel){
|
||||
return webUserService.loginPasswd(sysLoginModel);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue