新增摸大红业务并修复后台链接按钮白字

支持分类筛选、搜索、下单支付建群与固定二维码;合并迁移种子数据;后台表格编辑/详情链接恢复主题色可见。
This commit is contained in:
yml2213
2026-07-16 18:08:18 +08:00
parent 97a34e0329
commit 6d61027318
49 changed files with 9533 additions and 20 deletions
@@ -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}
}