public BaseApiResponse CheckPhoneAvailable([FromBody] CheckPhoneAvailableRequest request) { request.CheckNotNull(nameof(request)); if (!request.Phone.IsMobileNumber()) { return(new BaseApiResponse { Code = 400, Message = "错误的手机号码" }); } if (_userQueryService.CheckMobileIsAvliable(request.Phone)) { return(new CheckPhoneAvailableResponse { Result = true }); } else { return(new CheckPhoneAvailableResponse { Result = false, Message = "该手机号已经注册." }); } }