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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AID

type AID struct {
	ID        int64
	AvID      int64
	IncCharge int64
	IsDeleted int
}

AID used for aid query

type AVIDInfo

type AVIDInfo struct {
	AVID        int64  `json:"av_id"`
	MID         int64  `json:"mid"`
	NickName    string `json:"nickname"`
	Income      int64  `json:"income"`
	TotalIncome int64  `json:"total_income"`
}

AVIDInfo av info.

type AVInfo

type AVInfo struct {
	MID         int64 `json:"mid"`
	Category    int   `json:"category"`
	Income      int   `json:"income"`
	TotalIncome int   `json:"totalIncome"`
	TaxMoney    int   `json:"tax_money"`
}

AVInfo used when calculate income

type ActivityAVInfo

type ActivityAVInfo struct {
	ActivityID int64 `json:"mission_id"`
	AVID       int64 `json:"id"`
	MID        int64 `json:"mid"`
	Category   int   `json:"typeid"`
	TagID      int64 `json:"-"`
	Ratio      int   `json:"-"`
}

ActivityAVInfo active_id -> avid

type ActivityBonus

type ActivityBonus struct {
	BonusMoney int64
	Rank       int64
}

ActivityBonus activity bonus

type Archive

type Archive struct {
	AID   int64  `json:"aid"`
	Owner *Owner `json:"owner"`
}

Archive archive

type ArchiveID

type ArchiveID struct {
	ID int64 `json:"id"`
}

ArchiveID archive id

type ArchiveInfo

type ArchiveInfo struct {
	UpCnt      int    `json:"up_cnt"`
	ArchiveCnt int    `json:"archive_cnt"`
	UploadDate string `json:"log_date"`
}

ArchiveInfo archive info.

type ArchiveMsg

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

ArchiveMsg archive-T databus msg.

type ArchiveRes

type ArchiveRes struct {
	Code    int                 `json:"code"`
	Data    map[string]*Archive `json:"data"`
	Message string              `json:"message"`
}

ArchiveRes archive response

type ArchiveStat

type ArchiveStat struct {
	ID    int64
	AvID  int64
	State int
	Play  int64 `json:"play"`
	Dm    int64 `json:"dm"`
	Reply int64 `json:"reply"`
	Like  int64 `json:"like"`
	Share int64 `json:"share"`
}

ArchiveStat for archive stat.

type ArchiveSub

type ArchiveSub struct {
	ID        int64  `json:"id"`
	MID       int64  `json:"mid"`
	Copyright int8   `json:"copyright"`
	State     int    `json:"state"`
	CTime     string `json:"ctime"`
	MTime     string `json:"mtime"`
	PTime     string `json:"ptime"`
}

ArchiveSub archive

type Av

type Av struct {
	AvID     int64
	MID      int64
	TagID    int64
	Income   int64
	TaxMoney int64
}

Av av_income

type AvBaseIncome

type AvBaseIncome struct {
	MID          int64
	Date         time.Time
	AvBaseIncome int64
}

AvBaseIncome av_base_income

type AvBreach

type AvBreach struct {
	ID     int64
	MID    int64
	AvID   int64
	Money  int64
	Reason string
	Date   time.Time
}

AvBreach av_breach_record

type AvChargeRatio

type AvChargeRatio struct {
	ID         int64
	AvID       int64
	Ratio      int64
	AdjustType int
}

AvChargeRatio av_charge_ratio

type AvDailyCharge

type AvDailyCharge struct {
	AvID        int64
	MID         int64
	IncCharge   int
	TotalCharge int
	Date        time.Time
	IsDeleted   int
	CTime       time.Time
	MTime       time.Time
}

AvDailyCharge av_daily_charge

type AvIncome

type AvIncome struct {
	ID          int64
	AvID        int64
	MID         int64
	Income      int64
	TotalIncome int64
	TagID       int64
	Date        time.Time
	IsDeleted   int
}

AvIncome av income

type AvItem

type AvItem struct {
	AvID  int64
	Value int64
}

AvItem av item

type AvUpload

type AvUpload struct {
	ID         int64
	MID        int64
	AvID       int64
	UploadTime time.Time
}

AvUpload av upload time

type BgmSub

type BgmSub struct {
	MID   int64 `json:"mid"`
	State int   `json:"state"`
}

BgmSub bgm sub

type Blacklist

type Blacklist struct {
	ID        int64     `json:"id" gorm:"column:id"`
	AvID      int64     `json:"av_id" gorm:"column:av_id"`
	MID       int64     `json:"mid" gorm:"column:mid"`
	Reason    int       `json:"reason" gorm:"column:reason"`
	CType     int       `json:"ctype" gorm:"column:ctype"`
	HasSigned int       `json:"has_signed" gorm:"column:has_signed"`
	Nickname  string    `json:"nickname" gorm:"column:nickname"`
	CTime     time.Time `json:"ctime" gorm:"column:ctime"`
	MTime     time.Time `json:"mtime" gorm:"column:mtime"`
	IsDeleted int       `json:"-"`
}

Blacklist black list

type BreachRecord

type BreachRecord struct {
	ID        int64     `json:"id" gorm:"column:id"`
	AvID      int64     `json:"av_id" gorm:"column:av_id"`
	CType     int       `json:"ctype" gorm:"column:ctype"`
	CTime     time.Time `json:"ctime" gorm:"column:ctime"`
	MTime     time.Time `json:"mtime" gorm:"column:mtime"`
	IsDeleted int       `json:"-"`
}

BreachRecord breach record

type BudgetExpense

type BudgetExpense struct {
	Expense      int64
	UpCount      int64
	AvCount      int64
	UpAvgExpense int64
	AvAvgExpense int64
	Date         time.Time
	TotalExpense int64
	CType        int64
}

BudgetExpense budget expense

type CActivity

type CActivity struct {
	ID                int64     `json:"id"`
	Name              string    `json:"name" form:"name" validate:"required"`
	Creator           string    `json:"creator"`
	SignedStart       time.Time `json:"signed_start" form:"signed_start" validate:"required"`
	SignedEnd         time.Time `json:"signed_end" form:"signed_end" validate:"required"`
	SignUp            int       `json:"sign_up" form:"sign_up" default:"0"` // 需要报名 0不需要,1需要
	SignUpStart       time.Time `json:"sign_up_start" form:"sign_up_start" validate:"required"`
	SignUpEnd         time.Time `json:"sign_up_end" form:"sign_up_end" validate:"required"`
	Object            int       `json:"object" form:"object" validate:"required"` // 1:uid, 2:avid
	UploadStart       time.Time `json:"upload_start" form:"upload_start" validate:"required"`
	UploadEnd         time.Time `json:"upload_end" form:"upload_end" validate:"required"`
	WinType           int       `json:"win_type" form:"win_type" validate:"required"`           // 1:达标型,2:排序型
	RequireItems      string    `json:"require_items" form:"require_items" validate:"required"` // 1:点赞,2:分享,3:播放,4:评论,5:弹幕, 多个用","分割
	RequireValue      int64     `json:"require_value" form:"require_value" validate:"required"`
	StatisticsStart   time.Time `json:"statistics_start" form:"statistics_start" validate:"required"`
	StatisticsEnd     time.Time `json:"statistics_end" form:"statistics_end" validate:"required"`
	BonusType         int       `json:"bonus_type" form:"bonus_type" validate:"required"`         // 1:平分,2:各得
	BonusMoney        []int64   `json:"bonus_money" form:"bonus_money,split" validate:"required"` // (多个","分割)
	BonusTime         time.Time `json:"bonus_time" form:"bonus_time" validate:"required"`
	ProgressFrequency int       `json:"progress_frequency" form:"progress_frequency" validate:"required"` // 进展更新频率 1:每天 2:每周
	UpdatePage        int       `json:"update_page" form:"update_page" default:"0"`                       // 更新活动页 0:否 1:是
	ProgressStart     time.Time `json:"progress_start" form:"progress_start" validate:"required"`
	ProgressEnd       time.Time `json:"progress_end" form:"progress_end" validate:"required"`
	ProgressSync      int       `json:"progress_sync" form:"progress_sync" default:"0"` // 进展同步 1共有,2已有,3共有/已有
	BonusQuery        int       `json:"bonus_query" form:"bonus_query" default:"0"`     // 开奖查询 0:否 1:是
	BonusQuerStart    time.Time `json:"bonus_query_start" form:"bonus_query_start" validate:"required"`
	BonusQueryEnd     time.Time `json:"bonus_query_end" form:"bonus_query_end" validate:"required"`
}

CActivity creative activity

type CategoryInfo

type CategoryInfo struct {
	MID        int64
	Nickname   string
	CategoryID int
}

CategoryInfo query from up_category_info,used to update up_info_xxx

type Cheating

type Cheating struct {
	MID            int64
	Nickname       string
	AvID           int64
	PlayCount      int64
	Fans           int
	CheatFans      int
	CheatPlayCount int
	CheatCoin      int
	CheatFavorite  int
	UploadTime     time.Time
	SignedAt       time.Time
	TotalIncome    int
	AccountState   int
	Deducted       int
	IsDeleted      int
}

Cheating cheat

type ExecuteOrder

type ExecuteOrder struct {
	AvID  int64     `json:"av_id"`
	MID   int64     `json:"mid"`
	CTime time.Time `json:"ctime"`
}

ExecuteOrder execute order

type IncomeInfo

type IncomeInfo struct {
	ID          int64     `json:"id"`
	AVID        int64     `json:"av_id"`
	MID         int64     `json:"mid"`
	TagID       int64     `json:"-"`
	Income      int64     `json:"income"`
	BaseIncome  int64     `json:"-"`
	TotalIncome int64     `json:"total_income"`
	TaxMoney    int64     `json:"tax_money"`
	UploadTime  time.Time `json:"-"`
	IsDeleted   int       `json:"-"`
	Date        time.Time `json:"date"`
	BType       int       `json:"-"`
}

IncomeInfo income info.

type LotteryRes

type LotteryRes struct {
	RIDs    []int64 `json:"rids"`
	Offset  int64   `json:"offset"`
	HasMore int     `json:"has_more"`
}

LotteryRes ..

type MIDInfo

type MIDInfo struct {
	ID          int64  `json:"id"`
	MID         int64  `json:"mid"`
	Income      int64  `json:"income"`
	TotalIncome int64  `json:"total_income"`
	IsDeleted   int    `json:"is_deleted"`
	NickName    string `json:"nickname"`
}

MIDInfo mid info.

type Owner

type Owner struct {
	MID  int64  `json:"mid"`
	Name string `json:"name"`
}

Owner archive owner

type Patch

type Patch struct {
	Tax       int64
	Income    int64
	OldTax    int64
	OldIncome int64
	MID       int64
	TagID     int64
}

Patch patch

type Porder

type Porder struct {
	AID        int64     `json:"aid"`
	IndustryID int64     `json:"industry_id"`
	BrandID    int64     `json:"brand_id"`
	BrandName  string    `json:"brand_name"`
	Official   int64     `json:"official"`
	ShowType   string    `json:"show_type"`
	Advertiser string    `json:"advertiser"`
	Agent      string    `json:"agent"`
	State      int64     `json:"state"`
	ShowFront  int64     `json:"show_front"`
	CTime      time.Time `json:"ctime"`
	MTime      time.Time `json:"mtime"`
}

Porder porder

type PorderRes

type PorderRes struct {
	Code    int       `json:"code"`
	Data    []*Porder `json:"data"`
	Message string    `json:"message"`
	TTL     int       `json:"ttl"`
}

PorderRes porder response

type Spy

type Spy struct {
	ID        int64  `json:"id"`
	LogDate   string `json:"log_date"`
	TargetMID int64  `json:"target_mid"`
	TargetID  int64  `json:"target_id"`
	EventID   int64  `json:"event_id"`
	State     int    `json:"state"`
	Type      int    `json:"type"`
	Quantity  int    `json:"quantity"`
	IsDeleted int    `json:"is_del"`
}

Spy spy from http.

type TagAvIncome

type TagAvIncome struct {
	TagID       int64
	MID         int64
	AVID        int64
	Income      int
	TotalIncome int
	Date        time.Time
}

TagAvIncome tag av info.

type TagInfo

type TagInfo struct {
	ID          int64  `json:"-"`
	Tag         string `json:"tag"`
	Category    int    `json:"-"`
	AVID        int64  `json:"-"`
	AVCount     int    `json:"av_count"`
	Income      int64  `json:"income"`
	TotalIncome int64  `json:"total_income"`
	IsCommon    int    `json:"-"`
	IsDeleted   int    `json:"-"`
}

TagInfo email tag info

type TagUpInfo

type TagUpInfo struct {
	TagID      int64 `json:"id"`
	MID        int64 `json:"mid"`
	Category   int   `json:"category"`
	Business   int   `json:"business"`
	Ratio      int   `json:"ratio"`
	ActivityID int64 `json:"activity_id"`
	IsCommon   int64 `json:"is_common"`
}

TagUpInfo used when get avid_tagca

type TotalInfo

type TotalInfo struct {
	TotalIncome int64 `json:"total_income"`
	MIDCount    int   `json:"mid_count"`
	AVCount     int   `json:"av_count"`
}

TotalInfo total info.

type TypesInfo

type TypesInfo struct {
	PID int16 `json:"pid"`
	ID  int16 `json:"id"`
}

TypesInfo category info.

type UpAccount

type UpAccount struct {
	ID                    int64
	MID                   int64
	TotalIncome           int64
	TotalUnwithdrawIncome int64
	WithdrawDateVersion   string
	AvCount               int64
	MonthIncome           int64
	Nickname              string
}

UpAccount up_account

type UpActivity

type UpActivity struct {
	MID         int64
	ActivityID  int64
	AIDs        []int64
	AIDNum      int64
	ItemVal     int64
	Rank        int
	Bonus       int64
	State       int
	Nickname    string
	SuccessTime time.Time
}

UpActivity up activity

type UpBaseInfo

type UpBaseInfo struct {
	MID                  int64
	Fans                 int
	Avs                  int
	OriginalArchiveCount int
	TotalPlayCount       int
}

UpBaseInfo query from up_base_statistics, used to update up_info_video

type UpBill

type UpBill struct {
	MID            int64
	FirstIncome    int64
	MaxIncome      int64
	TotalIncome    int64
	AvCount        int64
	AvMaxIncome    int64
	AvID           int64
	QualityValue   int64
	DefeatNum      int
	Fans           int64
	TotalPlayCount int64
	Title          string
	ShareItems     string
	FirstTime      string
	MaxTime        string
	SignedAt       string
	EndAt          string
}

UpBill up_bill

type UpCharge

type UpCharge struct {
	MID         int64
	AvCount     int
	IncCharge   int
	TotalCharge int
	Date        time.Time
	IsDeleted   int
	CTime       time.Time
	MTime       time.Time
}

UpCharge up_charge

type UpIncome

type UpIncome struct {
	ID           int64
	MID          int64
	AvCount      int64
	AvIncome     int64
	ColumnCount  int64
	ColumnIncome int64
	BgmCount     int64
	BgmIncome    int64
	Income       int64
	TaxMoney     int64
	BaseIncome   int64
	TotalIncome  int64
	Date         time.Time
}

UpIncome up_income(weekly, monthly)

type UpInfoVideo

type UpInfoVideo struct {
	MID            int64
	Nickname       string
	AccountType    int
	AccountState   int
	SignedAt       time.Time
	Fans           int64
	TotalPlayCount int64
	CreditScore    int64
	IsDeleted      int
}

UpInfoVideo up_info_video

type UpQuality

type UpQuality struct {
	MID     int64
	Quality int64
}

UpQuality up quality

type VoteBIZArchive

type VoteBIZArchive struct {
	Aid int64 `json:"aid"`
}

VoteBIZArchive .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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