using Microsoft.AspNetCore.Mvc; using Znyc.CloudCar.IServices.CardIntro; using Znyc.CloudCar.Model.ViewModels.ReportsCallBack; namespace Znyc.CloudCar.Controller { /// /// 优惠卡控制器 /// public class CardIntroController : ControllerBase { public readonly ICardIntroService _cardIntroService; public CardIntroController(ICardIntroService cardIntroService) { _cardIntroService = cardIntroService; } /// /// 查询优惠卡缓存 /// /// [HttpGet] [Route("api/v1/cardintro")] public async Task GetCardIntroListAsync() { return await _cardIntroService.GetCardIntroListAsync(); } } }