- 在 AnnouncementAggregateRoot、AnnouncementLogDto、AnnouncementCacheDto 中新增 string? Url 属性,用于存储公告的跳转链接。 - 如果需要持久化到数据库,请同步添加对应的迁移/映射配置。
23 lines
524 B
C#
23 lines
524 B
C#
namespace Yi.Framework.AiHub.Application.Contracts.Dtos.Announcement;
|
|
|
|
/// <summary>
|
|
/// 公告缓存 DTO
|
|
/// </summary>
|
|
public class AnnouncementCacheDto
|
|
{
|
|
/// <summary>
|
|
/// 版本号
|
|
/// </summary>
|
|
public string Version { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 公告日志列表
|
|
/// </summary>
|
|
public List<AnnouncementLogDto> Logs { get; set; } = new List<AnnouncementLogDto>();
|
|
|
|
/// <summary>
|
|
/// 跳转链接
|
|
/// </summary>
|
|
public string? Url { get; set; }
|
|
}
|