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.
31 lines
823 B
31 lines
823 B
2 years ago
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using Znyc.CloudCar.IServices.CardIntro;
|
||
|
using Znyc.CloudCar.Model.ViewModels.ReportsCallBack;
|
||
|
|
||
|
namespace Znyc.CloudCar.Controller
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 优惠卡控制器
|
||
|
/// </summary>
|
||
|
public class CardIntroController : ControllerBase
|
||
|
{
|
||
|
public readonly ICardIntroService _cardIntroService;
|
||
|
|
||
|
public CardIntroController(ICardIntroService cardIntroService)
|
||
|
{
|
||
|
_cardIntroService = cardIntroService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询优惠卡缓存
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("api/v1/cardintro")]
|
||
|
public async Task<ResponseOutput> GetCardIntroListAsync()
|
||
|
{
|
||
|
return await _cardIntroService.GetCardIntroListAsync();
|
||
|
}
|
||
|
}
|
||
|
}
|