|
@@ -6,6 +6,7 @@ using Hotline.Share.Dtos.Article;
|
|
|
using Hotline.Share.Dtos.Snapshot;
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
+using System.Reflection;
|
|
|
using XF.Domain.Repository;
|
|
|
|
|
|
namespace Hotline.Api.Controllers.Snapshot;
|
|
@@ -26,6 +27,15 @@ public class SnapshotController : BaseController
|
|
|
_systemAreaDomainService = systemAreaDomainService;
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 首页数据
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet("home")]
|
|
|
+ [AllowAnonymous]
|
|
|
+ public async Task<IReadOnlyList<HomePageOutDto>> GetHomePageAsync()
|
|
|
+ => await _snapshotApplication.GetHomePageAsync();
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 获取小程序公告列表
|
|
|
/// </summary>
|