|
@@ -45,8 +45,14 @@ public class CoachInfoController extends BaseController {
|
|
|
* 教练登录测试
|
|
|
*/
|
|
|
@GetMapping("/getCoachInfoLogin")
|
|
|
- @ApiOperation("教练登录测试")
|
|
|
+ @ApiOperation("教练登录")
|
|
|
public Response<CoachInfo> getCoachInfoLogin(CoachInfoDTO coaDto) {
|
|
|
+ CoachInfo coachInfo = coachInfoService.getCoachBylogin(coaDto);
|
|
|
+ if(coachInfo==null) {
|
|
|
+ Response response = new Response(502,"用户不存在或用户密码错误");
|
|
|
+ return response;
|
|
|
+
|
|
|
+ }
|
|
|
return Response.success(coachInfoService.getCoachBylogin(coaDto));
|
|
|
}
|
|
|
|