using LifePayment.Application.Contracts;
|
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.Extensions.Options;
|
using System;
|
using System.Threading.Tasks;
|
using Volo.Abp;
|
using Volo.Abp.AspNetCore.Mvc;
|
using Volo.Abp.AspNetCore.WebClientInfo;
|
|
namespace LifePayment.HttpApi
|
{
|
[Route("api/[controller]/[action]")]
|
[ApiController]
|
public class AccountController : AbpController
|
{
|
private readonly IAccountService _accountService;
|
|
private readonly IWebClientInfoProvider _webClientInfoProvider;
|
|
|
public AccountController(
|
IAccountService accountService,
|
|
|
IWebClientInfoProvider webClientInfoProvider
|
)
|
{
|
_accountService = accountService;
|
|
_webClientInfoProvider = webClientInfoProvider;
|
|
}
|
|
|
#region life pay
|
|
/// <summary>
|
/// life pay手机验证码登录
|
/// </summary>
|
/// <param name="input"></param>
|
/// <returns></returns>
|
/// <exception cref="UserFriendlyException"></exception>
|
[HttpPost]
|
[AllowAnonymous]
|
[ChannelFilter]
|
public async Task<Guid> LifePayPhoneMesssageCodeLogin(LifePayPhoneMesssageCodeLoginInput input)
|
{
|
return await _accountService.LifePayPhoneMesssageCodeLogin(input);
|
}
|
|
|
#endregion
|
|
|
}
|
}
|