resource

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

Documentation

Index

Constants

View Source
const (
	StrategyOnly  = int8(0) // only
	StrategyShare = int8(1) // share
	StrategyRank  = int8(2) // rank
)

StrategyOnly int8

View Source
const (
	CreativeImage = int8(0)
	CreativeVideo = int8(1)
)

CreativeImage type

View Source
const (
	AsgTypePic   = int8(0)
	AsgTypeVideo = int8(1)
	// pgc mobile
	AsgTypeURL     = int8(2)
	AsgTypeBangumi = int8(3)
	AsgTypeLive    = int8(4)
	AsgTypeGame    = int8(5)
	AsgTypeAv      = int8(6)
	AsgTypeTopic   = int8(7)
	// content type
	FromManager = int8(0)
	FromCpm     = int8(1)
)

AsgTypePic AsgTypeVideo

Variables

View Source
var OverSeasCountry = map[string]int64{}/* 242 elements not displayed */

OverSeasCountry OverSeas Country

Functions

This section is empty.

Types

type Ad struct {
	RequestID string                         `json:"request_id"`
	AdsInfo   map[string]map[string]*AdsInfo `json:"ads_info"`
}

Ad struct

type AdInfo

type AdInfo struct {
	CreativeID      int64 `json:"creative_id"`
	CreativeType    int8  `json:"creative_type"`
	CreativeContent struct {
		Title        string `json:"title"`
		Desc         string `json:"description"`
		VideoID      int64  `json:"video_id"`
		UserName     string `json:"username"`
		ImageURL     string `json:"image_url"`
		ImageMD5     string `json:"image_md5"`
		LogURL       string `json:"log_url"`
		LogMD5       string `json:"log_md5"`
		URL          string `json:"url"`
		ClickURL     string `json:"click_url"`
		ShowURL      string `json:"show_url"`
		ThumbnailURL string `json:"thumbnail_url"`
	} `json:"creative_content"`
	AdCb string `json:"ad_cb"`
}

AdInfo struct

type AdsInfo

type AdsInfo struct {
	Index  int64   `json:"index"`
	IsAd   bool    `json:"is_ad"`
	CmMark int8    `json:"cm_mark"`
	AdInfo *AdInfo `json:"ad_info"`
}

AdsInfo struct

type ArgAid

type ArgAid struct {
	Aid   int64 `form:"aid" validate:"min=1"`
	Mid   int64
	Sid   string
	IP    string
	Buvid string
}

ArgAid ArgAid

type ArgRes

type ArgRes struct {
	Pf    int   `form:"pf" validate:"min=0"`
	ID    int64 `form:"id" validate:"min=1"`
	Mid   int64
	Sid   string
	IP    string
	Buvid string
}

ArgRes ArgRes

type ArgRess

type ArgRess struct {
	Pf    int     `form:"pf" validate:"min=0"`
	Ids   []int64 `form:"ids,split" validate:"min=1,dive,gte=1"`
	Mid   int64
	Sid   string
	IP    string
	Buvid string
}

ArgRess ArgRess

type Assignment

type Assignment struct {
	ID         int        `json:"id"`
	ContractID string     `json:"contract_id"`
	ResID      int        `json:"-"`
	PosNum     int        `json:"pos_num"`
	Name       string     `json:"name"`
	Pic        string     `json:"pic"`
	LitPic     string     `json:"litpic"`
	URL        string     `json:"url"`
	Rule       string     `json:"-"`
	Style      int32      `json:"style"`
	IsAd       bool       `json:"is_ad,omitempty"`
	Archive    *api.Arc   `json:"archive,omitempty"`
	Aid        int64      `json:"-"`
	Weight     int        `json:"-"`
	Atype      int8       `json:"-"`
	MTime      xtime.Time `json:"-"`
	Agency     string     `json:"agency"`
	Label      string     `json:"label"`
	Intro      string     `json:"intro"`
	// cpm
	CreativeType int8       `json:"creative_type"`
	RequestID    string     `json:"request_id,omitempty"`
	CreativeID   int64      `json:"creative_id,omitempty"`
	SrcID        int64      `json:"src_id,omitempty"`
	ShowURL      string     `json:"show_url,omitempty"`
	ClickURL     string     `json:"click_url,omitempty"`
	Area         int8       `json:"area"`
	IsAdLoc      bool       `json:"is_ad_loc"`
	AdCb         string     `json:"ad_cb"`
	Title        string     `json:"title"`
	ServerType   int8       `json:"server_type"`
	CmMark       int8       `json:"cm_mark"`
	IsCpm        bool       `json:"-"`
	STime        xtime.Time `json:"stime"`
	Mid          string     `json:"mid"`
}

Assignment struct

type Loc

type Loc struct {
	ID     int `json:"-"`
	PosNum int `json:"-"`
}

Loc struct

type Position

type Position struct {
	Pos     []*Loc
	Counter int `json:"-"`
}

Position struct

type Relation

type Relation struct {
	*api.Arc
	// cpm
	RequestID  string `json:"request_id,omitempty"`
	CreativeID int64  `json:"creative_id,omitempty"`
	SrcID      int64  `json:"src_id,omitempty"`
	ShowURL    string `json:"show_url,omitempty"`
	ClickURL   string `json:"click_url,omitempty"`
	Area       int8   `json:"area"`
	IsAdLoc    bool   `json:"is_ad_loc"`
	AdCb       string `json:"ad_cb"`
	ResID      int    `json:"resource_id"`
	IsAd       bool   `json:"is_ad"`
}

Relation struct

type Res

type Res struct {
	ID       int    `json:"-"`
	Platform int    `json:"-"`
	Name     string `json:"-"`
	Parent   int    `json:"-"`
	Counter  int    `json:"-"`
	Position int    `json:"-"`
	// ass
	Assignments []*Assignment `json:"-"`
}

Res struct

type VideoAD

type VideoAD struct {
	ID       int        `json:"-"`
	Name     string     `json:"name"`
	AidS     string     `json:"-"`
	Aid      int64      `json:"aid"`
	Cid      int64      `json:"cid"`
	URL      string     `json:"url"`
	Skipable int8       `json:"skipable"`
	Strategy int8       `json:"strategy"`
	MTime    xtime.Time `json:"-"`
}

VideoAD is Ads of videos

Jump to

Keyboard shortcuts

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