feat(tenant): 隔离客服通知文件与后台任务
This commit is contained in:
@@ -2,13 +2,14 @@ package chat
|
||||
|
||||
import (
|
||||
"hfb_sys/backend/internal/model"
|
||||
"hfb_sys/backend/internal/tenancy"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// DefaultSupportAdminID 导出默认客服选择逻辑,供其他业务模块建群时复用。
|
||||
func DefaultSupportAdminID(tx *gorm.DB) uint64 {
|
||||
return defaultSupportAdminID(tx)
|
||||
return defaultSupportAdminID(tx, tenancy.IDFromContext(tx.Statement.Context))
|
||||
}
|
||||
|
||||
// SendSystemMessageForTx 在事务内发送系统文本消息。
|
||||
|
||||
Reference in New Issue
Block a user