27 lines
710 B
C#
27 lines
710 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Hg.Core.WebApi.Controllers
|
|
{
|
|
[ApiSignatureFilterForbid]
|
|
public class HomeController : BaseController
|
|
{
|
|
private readonly ICacheDomain _cacheDomain;
|
|
public HomeController(ICacheDomain cacheDomain)
|
|
{
|
|
_cacheDomain = cacheDomain;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 刷新放假万年历
|
|
/// </summary>
|
|
/// <param name="year"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("RefreshHolidayCalendar")]
|
|
public async Task<List<HolidayCalendarDto>> RefreshHolidayCalendar(string year)
|
|
{
|
|
return await _cacheDomain.RefreshHolidayCalendar(year);
|
|
}
|
|
}
|
|
}
|