Files
bl/modules/player/model/fightinfo.go
昔念 aa53001982
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
```
refactor(cool): 移除Redis监听功能和用户结构体定义

移除ListenFunc函数,该函数提供Redis PubSub监听功能,
包括自动重连和心跳保活机制。同时删除User结构体定义和
相关有序集合变量,这些功能将由rpc模块替代实现。

feat(rpc): 添加对ListenFunc的调用以处理Redis监听

在login模块中
2026-03-04 23:38:21 +08:00

33 lines
830 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
import "blazing/cool"
// PVPMatchRecord PVP单场记录
// 记录每一场的详细信息,便于复盘和统计
type PVPMatchRecord struct {
*cool.Model
Noteinfo NoteReadyToFightInfo `gorm:"type:jsonb; " ` //携带信息
FightOver FightOverInfo `gorm:"type:jsonb; " ` //结束信息
//ScoreChange int32 `json:"score_change"` // 本场积分变化(+10/-5等
// WinStreak uint32 `json:"win_streak"` // 本场结束后的连胜数
}
// 表名常量
const TableNameFightinfo = "player_fight_info"
// TableName 返回表名
func (*PVPMatchRecord) TableName() string {
return TableNameFightinfo
}
// GroupName 返回表组名
func (*PVPMatchRecord) GroupName() string {
return "default"
}
// init 程序启动时自动创建表
func init() {
cool.CreateTable(&PVPMatchRecord{})
}