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.
36 lines
1014 B
36 lines
1014 B
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
|
|
{
|
|
/// <summary>
|
|
/// 广告页
|
|
/// </summary>
|
|
[ApiExplorerSettings(IgnoreApi = false)]
|
|
public class BannerController : BaseController
|
|
{
|
|
private readonly IBannerService _bannerService;
|
|
|
|
public BannerController(IBannerService bannerService)
|
|
{
|
|
_bannerService = bannerService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 查询广告列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("api/v1/banners")]
|
|
[AllowAnonymous]
|
|
public async Task<IResponseOutput<List<BannerListOutput>>> GetBannerListAsync(int tag)
|
|
{
|
|
return await _bannerService.GetBannerListAsync(tag);
|
|
}
|
|
}
|
|
}
|