model

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeForUpdateVideo   = int(0)
	TypeForDelVideo      = int(1)
	TypeForUpdateArchive = int(2)
)

is

View Source
const (
	TypeForView  = "view"
	TypeForDm    = "dm"
	TypeForReply = "reply"
	TypeForFav   = "fav"
	TypeForCoin  = "coin"
	TypeForShare = "share"
	TypeForRank  = "rank"
	TypeForLike  = "like"
)

is

Variables

This section is empty.

Functions

func Merge

func Merge(m *StatMsg, s *api.Stat)

Merge merge message and stat from db.

Types

type AccountNotify

type AccountNotify struct {
	Mid    int64  `json:"mid"`
	Action string `json:"action"`
}

AccountNotify is

type Archive

type Archive struct {
	ID          int64     `json:"id"`
	AID         int64     `json:"aid"`
	Mid         int64     `json:"mid"`
	TypeID      int16     `json:"typeid"`
	Videos      int       `json:"videos"`
	Title       string    `json:"title"`
	Cover       string    `json:"cover"`
	Content     string    `json:"content"`
	Duration    int       `json:"duration"`
	Attribute   int32     `json:"attribute"`
	Copyright   int8      `json:"copyright"`
	Access      int       `json:"access"`
	PubTime     wocaoTime `json:"pubtime"`
	CTime       wocaoTime `json:"ctime"`
	MTime       wocaoTime `json:"mtime"`
	State       int       `json:"state"`
	MissionID   int64     `json:"mission_id"`
	OrderID     int64     `json:"order_id"`
	RedirectURL string    `json:"redirect_url"`
	Forward     int64     `json:"forward"`
	Dynamic     string    `json:"dynamic"`
}

Archive archive result

type Message

type Message struct {
	Action string          `json:"action"`
	Table  string          `json:"table"`
	New    json.RawMessage `json:"new"`
	Old    json.RawMessage `json:"old"`
}

Message databus

type Notify

type Notify struct {
	Table  string   `json:"table"`
	Action string   `json:"action"`
	Nw     *Archive `json:"new"`
	Old    *Archive `json:"old"`
}

Notify is

type RetryItem

type RetryItem struct {
	Tp     int      `json:"type"`
	AID    int64    `json:"aid"`
	CID    int64    `json:"cid"`
	Old    *Archive `json:"new_archive"`
	Nw     *Archive `json:"old_archive"`
	Action string   `json:"action"`
}

RetryItem struct

type StatCount

type StatCount struct {
	Type      string `json:"type"`
	Aid       int64  `json:"id"`
	Count     int32  `json:"count"`
	TimeStamp int64  `json:"timestamp"`
}

StatCount is

type StatMsg

type StatMsg struct {
	Aid     int64  `json:"aid"`
	Click   int32  `json:"click"`
	DM      int32  `json:"dm"`
	Reply   int32  `json:"reply"`
	Fav     int32  `json:"fav"`
	Coin    int32  `json:"coin"`
	Share   int32  `json:"share"`
	NowRank int32  `json:"now_rank"`
	HisRank int32  `json:"his_rank"`
	Like    int32  `json:"like"`
	Type    string `json:"-"`
	Ts      int64  `json:"-"`
}

StatMsg stat info.

type Video

type Video struct {
	AID int64 `json:"aid"`
	CID int64 `json:"cid"`
}

Video is

Jump to

Keyboard shortcuts

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