2020-12-09 09:43:47 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Database mysql数据结构
|
2020-12-11 10:53:56 +00:00
|
|
|
// type Database struct {
|
|
|
|
// engine *gorm.DB
|
|
|
|
// T struct {
|
|
|
|
// CountLiveAnchors *gorm.DB
|
|
|
|
// }
|
|
|
|
// }
|
2020-12-09 09:43:47 +00:00
|
|
|
|
|
|
|
// CountLiveAnchors count_live_anchors
|
|
|
|
type CountLiveAnchors struct {
|
2020-12-11 10:53:56 +00:00
|
|
|
UID string `gorm:"uid"`
|
|
|
|
CreateAt time.Time `gorm:"create_at"`
|
|
|
|
IsCounted int `gorm:"is_counted"`
|
|
|
|
CountMap string `gorm:"count_map"`
|
2020-12-09 09:43:47 +00:00
|
|
|
}
|