fix tenant scoping for group business tables

This commit is contained in:
richjohnrambo
2026-09-23 10:10:08 +08:00
parent 35a70ce9ff
commit 7f0903cd31
6 changed files with 119 additions and 114 deletions
+5
View File
@@ -118,6 +118,7 @@ type GroupMemberListOptions struct {
}
type GroupInvitation struct {
TenantID TenantID `db:"tenant_id"`
ID int64 `db:"id"`
InvitationID string `db:"invitation_id"`
Topic string `db:"topic"`
@@ -137,6 +138,7 @@ type GroupInvitation struct {
}
type GroupJoinRequest struct {
TenantID TenantID `db:"tenant_id"`
ID int64 `db:"id"`
RequestID string `db:"request_id"`
Topic string `db:"topic"`
@@ -160,6 +162,7 @@ type GroupJoinRequest struct {
}
type GroupAnnouncement struct {
TenantID TenantID `db:"tenant_id"`
ID int64 `db:"id"`
AnnouncementID string `db:"announcement_id"`
Topic string `db:"topic"`
@@ -177,6 +180,7 @@ type GroupAnnouncement struct {
}
type GroupMute struct {
TenantID TenantID `db:"tenant_id"`
Topic string `db:"topic"`
UserID Uid `db:"-"`
MutedBy Uid `db:"-"`
@@ -195,6 +199,7 @@ type GroupMute struct {
}
type GroupFile struct {
TenantID TenantID `db:"tenant_id"`
ID int64 `db:"id"`
GroupFileID string `db:"group_file_id"`
Topic string `db:"topic"`