using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Znyc.Recruitment.Common.Output;
using Znyc.Recruitment.Controllers;
using Znyc.Recruitment.Service;
namespace Znyc.Recruitment.Api.Controllers
{
///
/// 充值活动服务
///
public class RechargeController : BaseController
{
private readonly IRechargeService _rechargeService;
public RechargeController(IRechargeService rechargeService)
{
_rechargeService = rechargeService;
}
///
/// 获取充值活动
///
///
[HttpGet]
[AllowAnonymous]
[Route("api/v1/recharge")]
public async Task> GetAsync()
{
return await _rechargeService.GetAsync();
}
}
}