|
@@ -5,19 +5,17 @@ import com.miaxis.common.constant.Constants;
|
|
|
import com.miaxis.common.core.controller.BaseController;
|
|
|
import com.miaxis.common.core.domain.Response;
|
|
|
import com.miaxis.common.core.domain.entity.UserInfo;
|
|
|
-import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
import com.miaxis.common.exception.CustomException;
|
|
|
import com.miaxis.common.utils.SecurityUtils;
|
|
|
import com.miaxis.newgzpt.domain.GzptUserInfo;
|
|
|
import com.miaxis.newgzpt.dto.GzptUserInfoDTO;
|
|
|
import com.miaxis.newgzpt.service.IGzptUserInfoService;
|
|
|
import com.miaxis.user.service.IUserInfoService;
|
|
|
-import io.swagger.annotations.*;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
/**
|
|
|
* <p>
|
|
|
* 学员基本信息表 前端控制器
|
|
@@ -55,10 +53,10 @@ public class GzptUserInfoController extends BaseController {
|
|
|
*/
|
|
|
@PutMapping(value = "/bind")
|
|
|
@ApiOperation("绑定学员账号")
|
|
|
- public Response<GzptUserInfo> getUserWxlogin(@RequestBody GzptUserInfoDTO gzptUserInfoDTO){
|
|
|
+ public Response getUserWxlogin(@RequestBody GzptUserInfoDTO gzptUserInfoDTO){
|
|
|
GzptUserInfo gzptUserInfo = gzptUserInfoService.getUserWxlogin(gzptUserInfoDTO);
|
|
|
if (gzptUserInfo == null){
|
|
|
- throw new CustomException("改学员账户不存在或者密码错误");
|
|
|
+ throw new CustomException("该学员账户不存在或者密码错误");
|
|
|
}
|
|
|
//绑定用户与学员关系
|
|
|
UserInfo student = SecurityUtils.getLoginUser().getStudent();
|