Пример #1
0
        public async Task <ApiResult> VaildSms(VaildSmsRequest request)
        {
            //手机验证
            var codeVaildResult = await _iCode.Vaild(request.Phone, request.Code);

            return(codeVaildResult.ToApiResult());
        }
Пример #2
0
        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("验证失败"));
        }
Пример #3
0
        public async Task <ApiResult> VaildSms(VaildSmsRequest request)
        {
            var result = await _userApplication.VaildSms(request.MapTo <VaildSmsAo>());

            return(result.ToApiResult());
        }