using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;
using Znyc.Recruitment.Common.Output;
using Znyc.Recruitment.Controllers;
using Znyc.Recruitment.Service;
namespace Znyc.Recruitment.Api.Controllers
{
///
/// 广告页
///
[ApiExplorerSettings(IgnoreApi = false)]
public class BannerController : BaseController
{
private readonly IBannerService _bannerService;
public BannerController(IBannerService bannerService)
{
_bannerService = bannerService;
}
///
/// 查询广告列表
///
///
[HttpGet]
[Route("api/v1/banners")]
[AllowAnonymous]
public async Task>> GetBannerListAsync(int tag)
{
return await _bannerService.GetBannerListAsync(tag);
}
}
}