feat(tenant): 隔离客服通知文件与后台任务
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user