mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-21 17:17:31 +08:00
优化RankService排行榜服务
This commit is contained in:
@@ -4,23 +4,13 @@ import "github.com/duanhf2012/origin/service"
|
||||
|
||||
type RankDataChangeType int8
|
||||
|
||||
const (
|
||||
RankDataNone RankDataChangeType = 0
|
||||
RankDataAdd RankDataChangeType = 1 //数据插入
|
||||
RankDataUpdate RankDataChangeType = 2 //数据更新
|
||||
RankDataDelete RankDataChangeType = 3 //数据删除
|
||||
)
|
||||
|
||||
|
||||
type IRankSkip interface {
|
||||
GetRankID() uint64
|
||||
GetRankLen() uint64
|
||||
}
|
||||
|
||||
// RankDataChangeCallBack 排行数据变化时调用
|
||||
//type RankDataChangeCallBack interface {
|
||||
// CB(iRankService service.IService, rankSkip IRankSkip, changeType RankDataChangeType, changed []*RankData)
|
||||
//}
|
||||
|
||||
type IRankModule interface {
|
||||
service.IModule
|
||||
|
||||
|
||||
Reference in New Issue
Block a user