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.
28 lines
723 B
28 lines
723 B
2 years ago
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using Znyc.CloudCar.IServices.Banner;
|
||
|
using Znyc.CloudCar.Model.ViewModels.ReportsCallBack;
|
||
|
|
||
|
namespace Znyc.CloudCar.Controller
|
||
|
{
|
||
|
public class BannerController : ControllerBase
|
||
|
{
|
||
|
private readonly IBannerService _bannerService;
|
||
|
|
||
|
public BannerController(IBannerService bannerService)
|
||
|
{
|
||
|
_bannerService = bannerService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询Banner列表
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("api/v1/banners")]
|
||
|
public async Task<ResponseOutput> GetBannerListAsync()
|
||
|
{
|
||
|
return await _bannerService.GetBannerListAsync();
|
||
|
}
|
||
|
}
|
||
|
}
|