记录和显示最近常用的集群

This commit is contained in:
刘祥超
2021-05-03 11:32:43 +08:00
parent d88ad9b3a1
commit 75192b6a6e
8 changed files with 223 additions and 78 deletions

View File

@@ -0,0 +1,22 @@
package models
// LatestItem 最近的条目统计
type LatestItem struct {
Id uint64 `field:"id"` // ID
ItemType string `field:"itemType"` // Item类型
ItemId uint64 `field:"itemId"` // itemID
Count uint64 `field:"count"` // 数量
UpdatedAt uint64 `field:"updatedAt"` // 更新时间
}
type LatestItemOperator struct {
Id interface{} // ID
ItemType interface{} // Item类型
ItemId interface{} // itemID
Count interface{} // 数量
UpdatedAt interface{} // 更新时间
}
func NewLatestItemOperator() *LatestItemOperator {
return &LatestItemOperator{}
}