You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
724 B
27 lines
724 B
using Microsoft.AspNetCore.Mvc;
|
|
using Znyc.CloudCar.IServices.Recharge;
|
|
using Znyc.CloudCar.Model.ViewModels.ReportsCallBack;
|
|
|
|
namespace Znyc.CloudCar.Controller
|
|
{
|
|
public class RechargeController : ControllerBase
|
|
{
|
|
private readonly IRechargeService _rechargeService;
|
|
|
|
public RechargeController(IRechargeService rechargeService)
|
|
{
|
|
_rechargeService = rechargeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取充值活动
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("api/v1/recharge")]
|
|
public async Task<ResponseOutput> GetAsync()
|
|
{
|
|
return await _rechargeService.GetAsync();
|
|
}
|
|
}
|
|
}
|
|
|