Platform upgrade: login auth fix, OCR/OSS upload, system menus and dicts, weather dashboard, weighing and invoice modules
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
namespace AgriculturalPlatform.Api.Models;
|
||||
|
||||
/// <summary>通知公告</summary>
|
||||
public class Announcement
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>内容(富文本/纯文本)</summary>
|
||||
public string Content { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>类型(数据字典 announcement_type:notice=通知 announce=公告)</summary>
|
||||
public string Type { get; set; } = "notice";
|
||||
|
||||
/// <summary>发布范围组织 Id(逗号分隔;空=全部可见)</summary>
|
||||
public string ScopeOrgIds { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>是否置顶</summary>
|
||||
public bool IsPinned { get; set; }
|
||||
|
||||
/// <summary>发布人</summary>
|
||||
public int? PublisherId { get; set; }
|
||||
|
||||
public User? Publisher { get; set; }
|
||||
|
||||
public DateTime PublishedAt { get; set; } = DateTime.Now;
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.Now;
|
||||
}
|
||||
|
||||
/// <summary>公告已读记录</summary>
|
||||
public class AnnouncementRead
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int AnnouncementId { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
|
||||
public DateTime ReadAt { get; set; } = DateTime.Now;
|
||||
}
|
||||
Reference in New Issue
Block a user