新增摸大红业务并修复后台链接按钮白字
支持分类筛选、搜索、下单支付建群与固定二维码;合并迁移种子数据;后台表格编辑/详情链接恢复主题色可见。
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package mohong
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
// ChatNotifier 会话创建后的异步通知接口。
|
||||
type ChatNotifier interface {
|
||||
NotifyNewConversation(conversationID uint64)
|
||||
}
|
||||
|
||||
// Repository 摸大红数据访问。
|
||||
type Repository struct {
|
||||
db *gorm.DB
|
||||
chatNotifier ChatNotifier
|
||||
}
|
||||
|
||||
// NewRepository 创建仓库。
|
||||
func NewRepository(db *gorm.DB, chatNotifier ChatNotifier) *Repository {
|
||||
return &Repository{db: db, chatNotifier: chatNotifier}
|
||||
}
|
||||
Reference in New Issue
Block a user