feat(tenant): 隔离客服通知文件与后台任务

This commit is contained in:
yml
2026-11-15 16:23:28 +08:00
parent c7dacfa025
commit e994fd9166
52 changed files with 1670 additions and 254 deletions
+2
View File
@@ -12,6 +12,8 @@ const (
type Announcement struct {
ID uint64 `gorm:"primaryKey" json:"id"`
// TenantID 经营租户归属;旧分销站点公告仍保存在同一记录中。
TenantID uint64 `gorm:"not null;default:0;index:idx_announcements_tenant_site" json:"tenant_id"`
// DistributionSiteID 公告归属站点:0=主站,>0=对应分站(分站公告中心按站点隔离)。
DistributionSiteID uint64 `gorm:"not null;default:0;index" json:"distribution_site_id"`
Title string `gorm:"size:255;not null" json:"title"`