登录修改
This commit is contained in:
@ -12,6 +12,7 @@ import com.ruoyi.framework.web.service.AppLoginService;
|
||||
import com.ruoyi.framework.web.service.SysPermissionService;
|
||||
import com.ruoyi.framework.web.service.TokenService;
|
||||
import com.ruoyi.system.service.ISysMenuService;
|
||||
import com.ruoyi.wgz.service.IWgzUserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@ -44,6 +45,9 @@ public class AppLoginController
|
||||
@Autowired
|
||||
private IBgtUserService iBgtUserService;
|
||||
|
||||
@Autowired
|
||||
private IWgzUserService wgzUserService;
|
||||
|
||||
/**
|
||||
* 登录方法
|
||||
*
|
||||
@ -79,7 +83,7 @@ public class AppLoginController
|
||||
ajax.put("user", bgtUser);
|
||||
break;
|
||||
case Constants.WGZ:
|
||||
ajax.put("user", user);
|
||||
ajax.put("user", wgzUserService.userLongIn(user.getPhonenumber()));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -5,6 +5,7 @@ import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.wgz.bo.req.WgzAppPersonalBasicInformationReq;
|
||||
import com.ruoyi.wgz.bo.req.WgzAppUserLongInReq;
|
||||
import com.ruoyi.wgz.bo.req.WgzAppUserRegisterReq;
|
||||
import com.ruoyi.wgz.bo.req.WgzRealNameAuthenticationReq;
|
||||
import com.ruoyi.wgz.bo.res.WgzAppPersonalBasicInformationRes;
|
||||
import com.ruoyi.wgz.bo.res.WgzAppUserLongInRes;
|
||||
import com.ruoyi.wgz.service.IWgzUserService;
|
||||
@ -14,9 +15,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* APP务工者Controller
|
||||
@ -49,7 +48,7 @@ public class WgzAppController {
|
||||
*/
|
||||
@ApiOperation("APP务工者-个人基本信息")
|
||||
@PreAuthorize("@ss.hasPermi('wgzApp:user:userPersonalBasicInformation')")
|
||||
@PostMapping("/wgzPersonalBasicInformation")
|
||||
@GetMapping("/wgzPersonalBasicInformation")
|
||||
public AjaxResult<WgzAppPersonalBasicInformationRes> userPersonalBasicInformation(@Validated WgzAppPersonalBasicInformationReq req) {
|
||||
return AjaxResult.success(iWgzUserService.userPersonalBasicInformation(req));
|
||||
}
|
||||
@ -60,7 +59,7 @@ public class WgzAppController {
|
||||
// @ApiOperation("APP务工者-实名认证")
|
||||
// @PreAuthorize("@ss.hasPermi('wgzApp:user:userRealNameAuthentication')")
|
||||
// @PostMapping("/wgzUserRealNameAuthentication")
|
||||
// public AjaxResult<WgzAppPersonalBasicInformationRes> userRealNameAuthentication(@Validated WgzAppPersonalBasicInformationReq req) {
|
||||
// public AjaxResult userRealNameAuthentication(@Validated @RequestBody WgzRealNameAuthenticationReq req) {
|
||||
// return AjaxResult.success(iWgzUserService.userPersonalBasicInformation(req));
|
||||
// }
|
||||
}
|
||||
|
Reference in New Issue
Block a user