GET /api/public/home
GET /api/public/notices/{id}
SQLite / MySQL 双数据库只读连接
.env 与现有数据库配置兼容
公告 HTML 安全清洗
学校、班级、考试、科目、报名及系统通知聚合
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using System.Text.Json.Nodes;
|
||||
|
||||
namespace Eis.Application.Public;
|
||||
|
||||
public interface IPublicQueryService
|
||||
{
|
||||
Task<JsonObject> GetHomeAsync(CancellationToken cancellationToken);
|
||||
|
||||
Task<JsonObject?> GetNoticeAsync(string id, CancellationToken cancellationToken);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
namespace Eis.Application.Public;
|
||||
|
||||
public interface IPublicSiteConfiguration
|
||||
{
|
||||
PublicSiteBranding Branding { get; }
|
||||
}
|
||||
|
||||
public sealed record PublicSiteBranding(
|
||||
PublicOrganization Organization,
|
||||
PublicSiteCopy SiteCopy);
|
||||
|
||||
public sealed record PublicOrganization(
|
||||
string Name,
|
||||
string Code,
|
||||
string Phone,
|
||||
string Address,
|
||||
string Email);
|
||||
|
||||
public sealed record PublicSiteCopy(
|
||||
string HeroEyebrow,
|
||||
string HeroTitle,
|
||||
string HeroHighlight,
|
||||
string HeroDescription,
|
||||
string FooterNotice);
|
||||
Reference in New Issue
Block a user