data

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Total 粉丝管理-累计数据
	Total = iota
	//Seven 粉丝管理-7日数据
	Seven
	//Thirty 粉丝管理-30日数据
	Thirty
	//Ninety 粉丝管理-90日数据
	Ninety
	//PlayDuration 播放时长
	PlayDuration = "video_play"
	//VideoAct 视频互动
	VideoAct = "video_act"
	//DynamicAct 动态互动
	DynamicAct = "dynamic_act"
)

for fan manager top mids.

View Source
const (
	//Play 播放相关.
	Play = int8(1)
	//Dm 弹幕相关.
	Dm = int8(2)
	//Reply 评论相关.
	Reply = int8(3)
	//Share 分享相关.
	Share = int8(4)
	//Coin 投币相关.
	Coin = int8(5)
	//Fav 收藏相关.
	Fav = int8(6)
	//Elec 充电相关.
	Elec = int8(7)
)

Variables

This section is empty.

Functions

func IncrTy

func IncrTy(ty int8) (val string, ok bool)

IncrTy return incr data type.

Types

type AppFan

type AppFan struct {
	Summary map[string]int64 `json:"summary"`
}

AppFan for stat.

type AppStat

type AppStat struct {
	Date string `json:"date"`
	Num  int64  `json:"num"`
}

AppStat arc stat.

type AppStatList

type AppStatList struct {
	Danmu   []*AppStat `json:"danmu"`
	View    []*AppStat `json:"view"`
	Fans    []*AppStat `json:"fans"`
	Comment []*AppStat `json:"comment"`
	Show    int8       `json:"show"`
}

AppStatList for arc stat list.

type AppViewerIncr

type AppViewerIncr struct {
	DateKey   int64     `json:"date_key"`
	Arcs      []*ArcInc `json:"arc_inc"`
	TotalIncr int       `json:"total_inc"`
	TyRank    []*Rank   `json:"type_rank"`
}

AppViewerIncr for up increment data.

type Arc

type Arc struct {
	Aid   int64  `json:"aid"`
	Title string `json:"title"`
	Click int64  `json:"click"`
}

Arc Arcs info.

type ArcInc

type ArcInc struct {
	AID   int64      `json:"aid"`
	Incr  int        `json:"incr"`
	Title string     `json:"title"`
	PTime xtime.Time `json:"ptime"`
}

ArcInc for archive increment data.

type ArchiveArea

type ArchiveArea struct {
	Location string `json:"location"`
	Count    int64  `json:"count"`
}

ArchiveArea for archive area.

type ArchiveData

type ArchiveData struct {
	ArchiveStat   *ArchiveStat           `json:"stat"`
	ArchiveSource *ArchiveSource         `json:"source"`
	ArchiveGroup  *ArchiveGroup          `json:"group"`
	ArchiveAreas  []*ArchiveArea         `json:"area"`
	Videos        []*archive.SimpleVideo `json:"videos,omitempty"`
}

ArchiveData for single archive stats.

type ArchiveGroup

type ArchiveGroup struct {
	Fans  int64 `json:"fans"`
	Guest int64 `json:"guest"`
}

ArchiveGroup for archive group.

type ArchivePlay

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"`
}

ArchivePlay for archive play.

type ArchivePlayList

type ArchivePlayList struct {
	ArcPlayList []*ArchivePlay `json:"arc_play_list"`
}

ArchivePlayList for arc play list.

type ArchiveSource

type ArchiveSource struct {
	Mainsite int64 `json:"mainsite"`
	Outsite  int64 `json:"outsite"`
	Mobile   int64 `json:"mobile"`
	Others   int64 `json:"others"`
	WebPC    int64 `json:"-"`
	WebH5    int64 `json:"-"`
	IOS      int64 `json:"-"`
	Android  int64 `json:"-"`
}

ArchiveSource for archive source

type ArchiveStat

type ArchiveStat struct {
	Play  int64 `json:"play"`
	Dm    int64 `json:"dm"`
	Reply int64 `json:"reply"`
	Coin  int64 `json:"coin"`
	Elec  int64 `json:"elec"`
	Fav   int64 `json:"fav"`
	Share int64 `json:"share"`
}

ArchiveStat for archive stat.

type CheckedTag

type CheckedTag struct {
	Tag     string `json:"tag"`
	Checked int    `json:"checked"`
}

CheckedTag tags with checked

type CreatorDataShow

type CreatorDataShow struct {
	Archive int `json:"archive"`
	Article int `json:"article"`
}

CreatorDataShow for display archive/article data module.

type PeriodTip

type PeriodTip struct {
	ModuleOne   string `json:"module_one"`
	ModuleTwo   string `json:"module_two"`
	ModuleThree string `json:"module_three"`
	ModuleFour  string `json:"module_four"`
}

PeriodTip period tip for data.

type PlaySource

type PlaySource struct {
	PlayProportion map[string]int32 `json:"play_proportion"`
	PageSource     map[string]int32 `json:"page_source"`
}

PlaySource for play soucre.

type Rank

type Rank struct {
	Name string `json:"name"`
	Rank int    `json:"rank"`
}

Rank type rank for up data.

type RankInfo

type RankInfo struct {
	MID   int64  `json:"mid"`
	Uname string `json:"uname"`
	Photo string `json:"photo"`
}

RankInfo str

type Stat

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"`
}

Stat info

type Tags

type Tags struct {
	Tags []string `json:"tags"`
}

Tags Arcs info

type ThirtyDay

type ThirtyDay struct {
	DateKey   int64 `json:"date_key"`
	TotalIncr int64 `json:"total_inc"`
}

ThirtyDay for 30 days data.

type Trend

type Trend struct {
	Ty  map[int]int64
	Tag map[int]int64
}

Trend for up trend data analysis.

type UpBaseStat

type UpBaseStat struct {
	View  int64 `json:"view"`  //播放
	Reply int64 `json:"reply"` //评论
	Dm    int64 `json:"dm"`    //弹幕
	Fans  int64 `json:"fans"`  //粉丝
	Fav   int64 `json:"fav"`   //收藏
	Like  int64 `json:"like"`  //喜欢
}

UpBaseStat for up base.

func (*UpBaseStat) CopyTo

func (u *UpBaseStat) CopyTo(stat *model.UpBaseStat)

CopyTo copy to

func (*UpBaseStat) CopyToReply

func (u *UpBaseStat) CopyToReply(stat *upgrpc.UpBaseStatReply)

CopyToReply copy to reply

type UpDataIncrMeta

type UpDataIncrMeta struct {
	Incr        int            `json:"-"`
	TopAIDList  map[int]int64  `json:"-"`
	TopIncrList map[int]int    `json:"-"`
	Rank        map[int]int    `json:"-"`
	TyRank      map[string]int `json:"-"`
}

UpDataIncrMeta for Play/Dm/Reply/Fav/Share/Elec/Coin incr.

type ViewerActionHour

type ViewerActionHour struct {
	View     map[int]int `json:"view"`
	Reply    map[int]int `json:"reply"`
	Dm       map[int]int `json:"danmu"`
	Elec     map[int]int `json:"elec"`
	Contract map[int]int `json:"contract"`
}

ViewerActionHour for up action data analysis.

type ViewerBase

type ViewerBase struct {
	Male         int64 `json:"male"`
	Female       int64 `json:"female"`
	AgeOne       int64 `json:"age_one"`
	AgeTwo       int64 `json:"age_two"`
	AgeThree     int64 `json:"age_three"`
	AgeFour      int64 `json:"age_four"`
	PlatPC       int64 `json:"plat_pc"`
	PlatH5       int64 `json:"plat_h5"`
	PlatOut      int64 `json:"plat_out"`
	PlatIOS      int64 `json:"plat_ios"`
	PlatAndroid  int64 `json:"plat_android"`
	PlatOtherApp int64 `json:"plat_other_app"`
}

ViewerBase for up base data analysis.

type ViewerIncr

type ViewerIncr struct {
	Arcs      []*ArcInc      `json:"arc_inc"`
	TotalIncr int            `json:"total_inc"`
	TyRank    map[string]int `json:"type_rank"`
}

ViewerIncr for up increment data.

type ViewerTrend

type ViewerTrend struct {
	Tag map[int]string   `json:"tag"`
	Ty  map[string]int64 `json:"ty"`
}

ViewerTrend for up trend data.

type WebFan

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"`
}

WebFan for stat.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL