public async Task <ApiResult> VaildSms(VaildSmsRequest request) { //手机验证 var codeVaildResult = await _iCode.Vaild(request.Phone, request.Code); return(codeVaildResult.ToApiResult()); }
public async Task <ServiceResult> VaildSms(VaildSmsRequest request) { //手机验证 var codeVaildResult = await _iCode.Vaild(request.Phone, request.Code); if (codeVaildResult.Success) { return(ServiceResult.IsSuccess("验证成功")); } return(ServiceResult.IsFailed("验证失败")); }
public async Task <ApiResult> VaildSms(VaildSmsRequest request) { var result = await _userApplication.VaildSms(request.MapTo <VaildSmsAo>()); return(result.ToApiResult()); }