Documentation ¶
Index ¶
Constants ¶
View Source
const ( StrategyOnly = int8(0) // only 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 ¶
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 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
Click to show internal directories.
Click to hide internal directories.