models

package
v0.0.0-...-542e5c7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDemandLog

func AddDemandLog(m *PmpDemandResponseLog) (err error)

func AddPmpRequestLog

func AddPmpRequestLog(m *PmpRequestLog) (err error)

func AddPmpTrackingLog

func AddPmpTrackingLog(m *PmpTrackingLog) (err error)

func GetCachedId

func GetCachedId(key string) (id int)

func GetDemandAdspaceId

func GetDemandAdspaceId(adspaceKey string) (id int)

func GetPmpAdspaceId

func GetPmpAdspaceId(pmpAdspaceKey string) (id int)

func ProcessPartition

func ProcessPartition(schemaName, tableName string, delFlg bool) (err error)

func SetCachedId

func SetCachedId(key string, id int)

func UpdateAllocationDetail

func UpdateAllocationDetail(allocation *PmpDailyAllocation)

adDate: 2006-01-02

func UpdateDailyReport

func UpdateDailyReport(adDate string) (err error)

adDate: 2006-01-02

func UpdateDemandDailyReport

func UpdateDemandDailyReport(adDate string) (err error)

adDate: 2006-01-02

func UpdateForeverAllocation

func UpdateForeverAllocation(lastDay string, currentDay string) (err error)

func UpdatePmpAdspaceDailyData

func UpdatePmpAdspaceDailyData() (err error)

adDate: 2006-01-02

func UpdateRequestDailyReport

func UpdateRequestDailyReport(adDate string) (err error)

adDate: 2006-01-02

Types

type PmpAdspace

type PmpAdspace struct {
	Id            int       `orm:"column(id);auto"`
	Name          string    `orm:"column(name);size(255)"`
	Description   string    `orm:"column(description);size(500);null"`
	DelFlg        int8      `orm:"column(del_flg);null"`
	CreateUser    int       `orm:"column(create_user);null"`
	CreateTime    time.Time `orm:"column(create_time);type(timestamp);null"`
	UpdateUser    int       `orm:"column(update_user);null"`
	UpdateTime    time.Time `orm:"column(update_time);type(timestamp);null"`
	PmpAdspaceKey string    `orm:"column(pmp_adspace_key);size(50);null"`
	SecretKey     string    `orm:"column(secret_key);size(50);null"`
	EstDailyImp   int       `orm:"column(est_daily_imp);null"`
	EstDailyClk   int       `orm:"column(est_daily_clk);null"`
	EstDailyCtr   float32   `orm:"column(est_daily_ctr);null"`
}

type PmpAdspaceMatrix

type PmpAdspaceMatrix struct {
	Id              int `orm:"column(id);auto"`
	PmpAdspaceId    int `orm:"column(pmp_adspace_id)"`
	DemandId        int `orm:"column(demand_id);null"`
	DemandAdspaceId int `orm:"column(demand_adspace_id);null"`
	Priority        int `orm:"column(priority);null"`
}

type PmpCampaign

type PmpCampaign struct {
	Id              int     `orm:"column(id);auto"`
	GroupId         int     `orm:"column(group_id)"`
	Name            string  `orm:"column(name);size(45)"`
	StartDate       string  `orm:"column(start_date);type(date);null"`
	EndDate         string  `orm:"column(end_date);type(date);null"`
	CampaignStatus  int     `orm:"column(campaign_status)"`
	DemandAdspaceId int     `orm:"column(demand_adspace_id)"`
	ImpTrackingUrl  string  `orm:"column(imp_tracking_url);size(1000);null"`
	ClkTrackingUrl  string  `orm:"column(clk_tracking_url);size(1000);null"`
	LandingUrl      string  `orm:"column(landing_url);size(1000);null"`
	AdType          int     `orm:"column(ad_type);null"`
	CampaignType    int     `orm:"column(campaign_type);null"`
	AccurateType    int     `orm:"column(accurate_type);null"`
	PricingType     int     `orm:"column(pricing_type);null"`
	StrategyType    int     `orm:"column(strategy_type);null"`
	BudgetType      int     `orm:"column(budget_type);null"`
	Budget          int     `orm:"column(budget);null"`
	BidPrice        float32 `orm:"column(bid_price);null"`
	Imp             int     `orm:"column(imp)"`
	Clk             int     `orm:"column(clk)"`
}

type PmpDailyAllocation

type PmpDailyAllocation struct {
	Id              int     `orm:"column(id);auto"`
	AdDate          string  `orm:"column(ad_date);type(date);null"`
	PmpAdspaceId    int     `orm:"column(pmp_adspace_id);null"`
	DemandAdspaceId int     `orm:"column(demand_adspace_id);null"`
	Imp             int     `orm:"column(imp);null"`
	Clk             int     `orm:"column(clk);null"`
	Ctr             float32 `orm:"column(ctr);null"`
}

type PmpDailyAllocationDetail

type PmpDailyAllocationDetail struct {
	Id            int    `orm:"column(id);auto"`
	AllocationId  int    `orm:"column(allocation_id)"`
	TargetingType string `orm:"column(targeting_type);size(45);null"`
	TargetingCode string `orm:"column(targeting_code);size(50);null"`
	PlanImp       int    `orm:"column(plan_imp);null"`
	PlanClk       int    `orm:"column(plan_clk);null"`
	ActualImp     int    `orm:"column(actual_imp);null"`
	ActualClk     int    `orm:"column(actual_clk);null"`
}

type PmpDailyReport

type PmpDailyReport struct {
	Id              int     `orm:"column(id);auto"`
	AdDate          string  `orm:"column(ad_date);type(date);null"`
	PmpAdspaceId    int     `orm:"column(pmp_adspace_id);null"`
	DemandAdspaceId int     `orm:"column(demand_adspace_id);null"`
	Imp             int     `orm:"column(imp);null"`
	Clk             int     `orm:"column(clk);null"`
	Ctr             float32 `orm:"column(ctr);null"`
}

type PmpDailyRequestReport

type PmpDailyRequestReport struct {
	Id           int     `orm:"column(id);auto"`
	AdDate       string  `orm:"column(ad_date);type(date);null"`
	PmpAdspaceId int     `orm:"column(pmp_adspace_id);null"`
	ReqSuccess   int     `orm:"column(req_success);null"`
	ReqNoad      int     `orm:"column(req_noad);null"`
	ReqError     int     `orm:"column(req_error);null"`
	FillRate     float32 `orm:"column(fill_rate);null"`
}

type PmpDemandAdspace

type PmpDemandAdspace struct {
	Id               int       `orm:"column(id);auto"`
	Name             string    `orm:"column(name);size(255)"`
	DelFlg           int8      `orm:"column(del_flg);null"`
	CreateUser       int       `orm:"column(create_user);null"`
	CreateTime       time.Time `orm:"column(create_time);type(timestamp);null"`
	UpdateUser       int       `orm:"column(update_user);null"`
	UpdateTime       time.Time `orm:"column(update_time);type(timestamp);null"`
	SecretKey        string    `orm:"column(secret_key);size(50);null"`
	DemandAdspaceKey string    `orm:"column(demand_adspace_key);size(50);null"`
}

type PmpDemandDailyReport

type PmpDemandDailyReport struct {
	Id              int    `orm:"column(id);auto"`
	AdDate          string `orm:"column(ad_date);type(date);null"`
	DemandAdspaceId int    `orm:"column(demand_adspace_id);null"`
	ReqSuccess      int    `orm:"column(req_success);null"`
	ReqTimeout      int    `orm:"column(req_timeout);null"`
	ReqNoad         int    `orm:"column(req_noad);null"`
	ReqError        int    `orm:"column(req_error);null"`
}

type PmpDemandPlatformDesk

type PmpDemandPlatformDesk struct {
	Id                 int       `orm:"column(id);auto"`
	Name               string    `orm:"column(name);size(255)"`
	RequestUrlTemplate string    `orm:"column(request_url_template);size(500);null"`
	DelFlg             int8      `orm:"column(del_flg);null"`
	CreateUser         int       `orm:"column(create_user);null"`
	CreateTime         time.Time `orm:"column(create_time);type(timestamp);null"`
	UpdateUser         int       `orm:"column(update_user);null"`
	UpdateTime         time.Time `orm:"column(update_time);type(timestamp);null"`
}

type PmpDemandResponseLog

type PmpDemandResponseLog struct {
	Id              int    `orm:"column(id);auto"`
	AdDate          string `orm:"column(ad_date);type(date);null"`
	Bid             string `orm:"column(bid);size(50);null"`
	Did             string `orm:"column(did);size(50);null"`
	ResponseTime    string `orm:"column(response_time);type(timestamp);null"`
	DemandAdspaceId int    `orm:"column(demand_adspace_id);null"`
	ResponseCode    int    `orm:"column(response_code);null"`
	ResponseBody    string `orm:"column(response_body);null"`
}

type PmpMedia

type PmpMedia struct {
	Id          int       `orm:"column(id);auto"`
	Name        string    `orm:"column(name);size(255)"`
	Description string    `orm:"column(description);size(500);null"`
	DelFlg      int8      `orm:"column(del_flg);null"`
	CreateUser  int       `orm:"column(create_user);null"`
	CreateTime  time.Time `orm:"column(create_time);type(timestamp);null"`
	UpdateUser  int       `orm:"column(update_user);null"`
	UpdateTime  time.Time `orm:"column(update_time);type(timestamp);null"`
}

type PmpRequestLog

type PmpRequestLog struct {
	Id              int     `orm:"column(id);auto"`
	AdDate          string  `orm:"column(ad_date);type(date);null"`
	PmpAdspaceId    int     `orm:"column(pmp_adspace_id);null"`
	RequestTime     string  `orm:"column(request_time);type(timestamp);null"`
	Bid             string  `orm:"column(bid);size(50);null"`
	Did             string  `orm:"column(did);size(50);null"`
	Os              int     `orm:"column(os);null"`
	IdType          int     `orm:"column(id_type);null"`
	StatusCode      int     `orm:"column(status_code);null"`
	Pkgname         string  `orm:"column(pkgname);size(50);null"`
	Uid             string  `orm:"column(uid);size(30);null"`
	Ip              string  `orm:"column(ip);size(20);null"`
	ProvinceCode    string  `orm:"column(province_code);size(45);null"`
	CityCode        string  `orm:"column(city_code);size(45);null"`
	Ua              string  `orm:"column();size(255);null"`
	Lon             float32 `orm:"column(lon);null"`
	Lat             float32 `orm:"column(lat);null"`
	ProcessDuration int     `orm:"column(process_duration);null"`
	Width           int     `orm:"column(width);null"`
	Height          int     `orm:"column(height);null"`
}

type PmpTrackingLog

type PmpTrackingLog struct {
	Id              int     `orm:"column(id);auto"`
	AdDate          string  `orm:"column(ad_date);type(date);null"`
	RequestTime     string  `orm:"column(request_time);type(int);null"`
	Bid             string  `orm:"column(bid);size(50);null"`
	Did             string  `orm:"column(did);size(50);null"`
	LogType         int     `orm:"column(log_type);null"`
	Os              int     `orm:"column(os);null"`
	IdType          int     `orm:"column(id_type);null"`
	Pkgname         string  `orm:"column(pkgname);size(50);null"`
	Uid             string  `orm:"column(uid);size(30);null"`
	Ip              string  `orm:"column(ip);size(20);null"`
	ProvinceCode    string  `orm:"column(province_code);size(45);null"`
	CityCode        string  `orm:"column(city_code);size(45);null"`
	PmpAdspaceId    int     `orm:"column(pmp_adspace_id);null"`
	DemandAdspaceId int     `orm:"column(demand_adspace_id);null"`
	Ua              string  `orm:"column();size(255);null"`
	Lon             float32 `orm:"column(lon);null"`
	Lat             float32 `orm:"column(lat);null"`
	Width           int     `orm:"column(width);null"`
	Height          int     `orm:"column(height);null"`
}

Jump to

Keyboard shortcuts

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