123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- package data
- import (
- xtime "go-common/library/time"
- "go-common/app/interface/main/creative/model/medal"
- )
- type Stat struct {
- FanLast int64 `json:"fan_last"`
- Fan int64 `json:"fan"`
- DmLast int64 `json:"dm_last"`
- Dm int64 `json:"dm"`
- CommentLast int64 `json:"comment_last"`
- Comment int64 `json:"comment"`
- Play int64 `json:"play"`
- PlayLast int64 `json:"play_last"`
- Fav int64 `json:"fav"`
- FavLast int64 `json:"fav_last"`
- Like int64 `json:"like"`
- LikeLast int64 `json:"like_last"`
- Day30 map[string]int `json:"30,omitempty"`
- Arcs map[string][]*Arc `json:"arcs"`
- }
- type Arc struct {
- Aid int64 `json:"aid"`
- Title string `json:"title"`
- Click int64 `json:"click"`
- }
- type Tags struct {
- Tags []string `json:"tags"`
- }
- type CheckedTag struct {
- Tag string `json:"tag"`
- Checked int `json:"checked"`
- }
- type AppStat struct {
- Date string `json:"date"`
- Num int64 `json:"num"`
- }
- type AppStatList struct {
- Danmu []*AppStat `json:"danmu"`
- View []*AppStat `json:"view"`
- Fans []*AppStat `json:"fans"`
- Comment []*AppStat `json:"comment"`
- Show int8 `json:"show"`
- }
- type ViewerTrend struct {
- Tag map[int]string `json:"tag"`
- Ty map[string]int64 `json:"ty"`
- }
- type ViewerIncr struct {
- Arcs []*ArcInc `json:"arc_inc"`
- TotalIncr int `json:"total_inc"`
- TyRank map[string]int `json:"type_rank"`
- }
- type ArcInc struct {
- AID int64 `json:"aid"`
- Incr int `json:"incr"`
- Title string `json:"title"`
- PTime xtime.Time `json:"ptime"`
- }
- type PeriodTip struct {
- ModuleOne string `json:"module_one"`
- ModuleTwo string `json:"module_two"`
- ModuleThree string `json:"module_three"`
- ModuleFour string `json:"module_four"`
- }
- type AppViewerIncr struct {
- DateKey int64 `json:"date_key"`
- Arcs []*ArcInc `json:"arc_inc"`
- TotalIncr int `json:"total_inc"`
- TyRank []*Rank `json:"type_rank"`
- }
- type ThirtyDay struct {
- DateKey int64 `json:"date_key"`
- TotalIncr int64 `json:"total_inc"`
- }
- type Rank struct {
- Name string `json:"name"`
- Rank int `json:"rank"`
- }
- type CreatorDataShow struct {
- Archive int `json:"archive"`
- Article int `json:"article"`
- }
- type AppFan struct {
- Summary map[string]int64 `json:"summary"`
- }
- const (
-
- Total = iota
-
- Seven
-
- Thirty
-
- Ninety
-
- PlayDuration = "video_play"
-
- VideoAct = "video_act"
-
- DynamicAct = "dynamic_act"
- )
- type WebFan struct {
- RankMap map[string]map[string]int32 `json:"-"`
- Summary map[string]int32 `json:"summary"`
- RankList map[string][]*RankInfo `json:"rank_list"`
- RankMedal map[string][]*medal.FansRank `json:"rank_medal"`
- Source map[string]int32 `json:"source"`
- }
- type RankInfo struct {
- MID int64 `json:"mid"`
- Uname string `json:"uname"`
- Photo string `json:"photo"`
- }
- type PlaySource struct {
- PlayProportion map[string]int32 `json:"play_proportion"`
- PageSource map[string]int32 `json:"page_source"`
- }
- type ArchivePlay struct {
- AID int64 `json:"aid"`
- View int32 `json:"view"`
- Rate int32 `json:"rate"`
- CTime int32 `json:"ctime"`
- Duration int64 `json:"duration"`
- AvgDuration int64 `json:"avg_duration"`
- Title string `json:"title"`
- }
- type ArchivePlayList struct {
- ArcPlayList []*ArchivePlay `json:"arc_play_list"`
- }
|