Platform upgrade: login auth fix, OCR/OSS upload, system menus and dicts, weather dashboard, weighing and invoice modules

This commit is contained in:
2026-08-14 01:12:33 +08:00
parent c377421a3e
commit 8099ebae0a
75 changed files with 5611 additions and 473 deletions
@@ -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_typenotice=通知 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;
}