models

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetProgramBreaksType                = "GetProgramBreaks"
	GetProgramBreaksLightModeType       = "GetProgramBreaksLightMode"
	AddMPlanFilmType                    = "AddMPlanFilm"
	AddMPlanType                        = "AddMPlan"
	AddSpotType                         = "AddSpot"
	GetAdvMessagesType                  = "GetAdvMessages"
	GetBudgetsType                      = "GetBudgets"
	ChangeMPlanFilmPlannedInventoryType = "ChangeMPlanFilmPlannedInventory"
	ChangeSpotType                      = "ChangeSpot"
	GetCustomersWithAdvertisersType     = "GetCustomersWithAdvertisers"
	DeleteMPlanFilmType                 = "DeleteMPlanFilm"
	DeleteSpotType                      = "DeleteSpot"
	GetDeletedSpotInfoType              = "GetDeletedSpotInfo"
	GetMPLansType                       = "GetMPLans"
	GetSpotsType                        = "GetSpots"
	GetRanksType                        = "GetRanks"
	SetSpotPositionType                 = "SetSpotPosition"
	GetChannelsType                     = "GetChannels"
	ProgramBreaksUpdateQueue            = "program-breaks-update"
	ProgramBreaksLightModeUpdateQueue   = "program-breaks-light-mode-update"
	AdvMessagesUpdateQueue              = "adv-messages-update"
	BudgetsUpdateQueue                  = "budgets-update"
	CustomersWithAdvertisersUpdateQueue = "customers-with-advertisers-update"
	DeletedSpotInfoUpdateQueue          = "deleted-spot-info-update"
	MPLansUpdateQueue                   = "mediaplans-update"
	MediaplanAggUpdateQueue             = "mediaplans-agg-update"
	ProgramsUpdateQueue                 = "programs-update"
	SpotsUpdateQueue                    = "spots-update"
	RanksUpdateQueue                    = "ranks-update"
	ChannelsUpdateQueue                 = "channels-update"
	DbChannels                          = "db/channels"
	DbBudgets                           = "db/budgets"
	DbRanks                             = "db/ranks"
	DbAdvertisers                       = "db/advertisers"
	DbCustomersWithAdvertisers          = "db/customers-with-advertisers"
	DbCustomersWithAdvertisersData      = "db/customers-with-advertisers-data"
	DbSpots                             = "db/spots"
	DbSpotsOrderBlock                   = "db/spots-order-block"
	DbProgramBreaksLightMode            = "db/program-breaks-light-mode"
	DbProgramBreaks                     = "db/program-breaks"
	DbPrograms                          = "db/programs"
	DbProgramBreaksProMaster            = "db/program-breaks-pro-master"
	DbProgramBreaksBlockForecast        = "db/program-breaks-block-forecast"
	DbProgramBreaksBlockForecastTgr     = "db/program-breaks-block-forecast-tgr"
	DbDeletedSpotInfo                   = "db/deleted-spot-info"
	DbMediaplans                        = "db/mediaplans"
	DbAggMediaplans                     = "db/agg-mediaplans"
	DbTimeout                           = "db/timeout"
)

Variables

Functions

func AdvertiserStartJob

func AdvertiserStartJob() chan error

func BudgetStartJob

func BudgetStartJob() chan error

func ChannelsStartJob

func ChannelsStartJob() chan error

func CustomersWithAdvertisersStartJob

func CustomersWithAdvertisersStartJob() chan error

func DeletedSpotInfoStartJob

func DeletedSpotInfoStartJob() chan error

func MediaplanAggStartJob

func MediaplanAggStartJob() chan error

func MediaplanStartJob

func MediaplanStartJob() chan error

func ProgramBreaksLightStartJob

func ProgramBreaksLightStartJob() chan error

func ProgramBreaksStartJob

func ProgramBreaksStartJob() chan error

func ProgramStartJob

func ProgramStartJob() chan error

func RanksStartJob

func RanksStartJob() chan error

func SpotStartJob

func SpotStartJob() chan error

Types

type AddMPlan

type AddMPlan struct {
	goConvert.UnsortedMap
}

func (*AddMPlan) GetDataJson

func (request *AddMPlan) GetDataJson() (*JsonResponse, error)

func (*AddMPlan) GetDataXmlZip

func (request *AddMPlan) GetDataXmlZip() (*StreamResponse, error)

func (*AddMPlan) UploadToS3

func (request *AddMPlan) UploadToS3() error

type AddMPlanFilm

type AddMPlanFilm struct {
	goConvert.UnsortedMap
}

func (*AddMPlanFilm) GetDataJson

func (request *AddMPlanFilm) GetDataJson() (*JsonResponse, error)

func (*AddMPlanFilm) GetDataXmlZip

func (request *AddMPlanFilm) GetDataXmlZip() (*StreamResponse, error)

func (*AddMPlanFilm) UploadToS3

func (request *AddMPlanFilm) UploadToS3() error

type AddSpot

type AddSpot struct {
	goConvert.UnsortedMap
}

func (*AddSpot) GetDataJson

func (request *AddSpot) GetDataJson() (*JsonResponse, error)

func (*AddSpot) GetDataXmlZip

func (request *AddSpot) GetDataXmlZip() (*StreamResponse, error)

func (*AddSpot) UploadToS3

func (request *AddSpot) UploadToS3() error

type AdvMessageQuery

type AdvMessageQuery struct {
	AdtID struct {
		Eq int64 `json:"eq" example:"700061957"`
	} `json:"AdtID"`
	BrandID struct {
		Eq int64 `json:"eq" example:"44362"`
	} `json:"BrandID"`
}

type AdvMessagesConfiguration

type AdvMessagesConfiguration struct {
	Cron    string `json:"cron"`
	Loading bool   `json:"loading"`
}

func (*AdvMessagesConfiguration) InitJob

func (cfg *AdvMessagesConfiguration) InitJob() func()

func (*AdvMessagesConfiguration) StartJob

func (cfg *AdvMessagesConfiguration) StartJob() chan error

type AdvMessagesLoadRequest

type AdvMessagesLoadRequest struct {
	CreationDateStart string `json:"CreationDateStart" example:"20190301"`
	CreationDateEnd   string `json:"CreationDateEnd" example:"20191201"`
	FillMaterialTags  string `json:"FillMaterialTags" example:"true"`
	Advertisers       []struct {
		Id string `json:"ID"`
	} `json:"Advertisers"`
	Aspects []struct {
		Id string `json:"ID"`
	} `json:"Aspects"`
	AdvertisingMessageIDs []struct {
		Id string `json:"ID"`
	} `json:"AdvertisingMessageIDs"`
}

func (*AdvMessagesLoadRequest) InitTasks

func (request *AdvMessagesLoadRequest) InitTasks() (CommonResponse, error)

type Advertiser

type Advertiser struct {
	AdtID                 *string   `json:"AdtID" bson:"AdtID"`
	GroupID               *string   `json:"GroupID" bson:"GroupID""`
	AdtName               *string   `json:"AdtName" bson:"AdtName"`
	FilmName              *string   `json:"FilmName" bson:"FilmName"`
	FilmVersion           *string   `json:"FilmVersion" bson:"FilmVersion"`
	BrandName             *string   `json:"BrandName" bson:"BrandName"`
	AspectName            *string   `json:"AspectName" bson:"AspectName"`
	FilmID                *int64    `json:"FilmID" bson:"FilmID"`
	FilmDur               *int64    `json:"FilmDur" bson:"FilmDur"`
	BrandID               *int64    `json:"BrandID" bson:"BrandID"`
	ProdClassID           *int64    `json:"ProdClassID" bson:"ProdClassID"`
	FfoaAllocated         *int64    `json:"FfoaAllocated" bson:"FfoaAllocated"`
	FfoaLawAcc            *int64    `json:"FfoaLawAcc" bson:"FfoaLawAcc"`
	AspectID              *int64    `json:"AspectID" bson:"AspectID"`
	DoubleAdvertiser      *bool     `json:"DoubleAdvertiser" bson:"DoubleAdvertiser"`
	HasSpots              *bool     `json:"HasSpots" bson:"HasSpots"`
	HasBroadcastMaterials *bool     `json:"HasBroadcastMaterials" bson:"HasBroadcastMaterials"`
	HasPreviewMaterials   *bool     `json:"HasPreviewMaterials" bson:"HasPreviewMaterials"`
	Timestamp             time.Time `json:"Timestamp" bson:"Timestamp"`
}

func (*Advertiser) Key

func (adv *Advertiser) Key() string

type AdvertiserUpdateRequest

type AdvertiserUpdateRequest struct {
	S3Key string
}

func (*AdvertiserUpdateRequest) Update

func (request *AdvertiserUpdateRequest) Update() error

type AggMediaplanQuery

type AggMediaplanQuery struct {
	MplMonth struct {
		Eq int64 `json:"eq" example:"201902"`
	} `json:"MplMonth"`
	CppPrime struct {
		Eq float64 `json:"eq" example:"2205.20143600803"`
	} `json:"CppPrime"`
	CppOffPrime struct {
		Eq float64 `json:"ge" example:"100"`
	} `json:"CppOffPrime"`
}

type Any

type Any struct {
	Body map[string]interface{}
}

func (*Any) QueryAdvMessages

func (request *Any) QueryAdvMessages() ([]Advertiser, error)

func (*Any) QueryAggMediaplans

func (request *Any) QueryAggMediaplans() ([]MediaplanAgg, error)

func (*Any) QueryBudgets

func (request *Any) QueryBudgets() ([]Budget, error)

func (*Any) QueryChannels

func (request *Any) QueryChannels() ([]Channel, error)

func (*Any) QueryCustomersWithAdvertisers

func (request *Any) QueryCustomersWithAdvertisers() ([]CustomersWithAdvertisers, error)

func (*Any) QueryCustomersWithAdvertisersData

func (request *Any) QueryCustomersWithAdvertisersData() ([]CustomersWithAdvertisersData, error)

func (*Any) QueryMediaplans

func (request *Any) QueryMediaplans() ([]Mediaplan, error)

func (*Any) QueryProgramBreaks

func (request *Any) QueryProgramBreaks() ([]ProgramBreaks, error)

func (*Any) QueryProgramBreaksLightMode

func (request *Any) QueryProgramBreaksLightMode() ([]ProgramBreaksLight, error)

func (*Any) QueryProgramBreaksProMaster

func (request *Any) QueryProgramBreaksProMaster() ([]ProMaster, error)

func (*Any) QueryRanks

func (request *Any) QueryRanks() ([]Ranks, error)

func (*Any) QuerySpots

func (request *Any) QuerySpots() ([]Spot, error)

func (*Any) QuerySpotsOrderBlock

func (request *Any) QuerySpotsOrderBlock() ([]SpotOrderBlock, error)

type Attributes

type Attributes struct {
	BlockID *int64 `json:"BlockID" bson:"BlockID"`
	VM      *int64 `json:"VM" bson:"VM"`
	VR      *int64 `json:"VR" bson:"VR"`
}

type BlockForecast

type BlockForecast struct {
	TgrID            *int64    `json:"TgrID" bson:"TgrID"`
	BlockID          *int64    `json:"BlockID" bson:"BlockID"`
	Forecast         *float64  `json:"Forecast" bson:"Forecast"`
	InternetForecast *float64  `json:"InternetForecast" bson:"InternetForecast"`
	Fact             *float64  `json:"Fact" bson:"Fact"`
	ForecastQuality  *string   `json:"ForecastQuality" bson:"ForecastQuality"`
	Timestamp        time.Time `json:"Timestamp" bson:"Timestamp"`
}

func (*BlockForecast) Key

func (block *BlockForecast) Key() string

type BlockForecastTgr

type BlockForecastTgr struct {
	ID        *int64    `json:"ID" bson:"ID"`
	Name      *string   `json:"Name" bson:"Name"`
	Timestamp time.Time `json:"Timestamp" bson:"Timestamp"`
}

func (*BlockForecastTgr) Key

func (trg *BlockForecastTgr) Key() string

type BookedAttributes

type BookedAttributes struct {
	RankID *int64 `json:"RankID" bson:"RankID"`
	VM     *int64 `json:"VM" bson:"VM"`
	VR     *int64 `json:"VR" bson:"VR"`
}

type Budget

type Budget struct {
	Month                 *int64       `json:"Month" bson:"Month"`
	CnlID                 *int64       `json:"CnlID" bson:"CnlID"`
	AdtID                 *int64       `json:"AdtID" bson:"AdtID"`
	AgrID                 *int64       `json:"AgrID" bson:"AgrID"`
	InventoryUnitDuration *int64       `json:"InventoryUnitDuration" bson:"InventoryUnitDuration"`
	DealChannelStatus     *int64       `json:"DealChannelStatus" bson:"DealChannelStatus"`
	FixPercent            *int64       `json:"FixPercent" bson:"FixPercent"`
	GRPFix                *int64       `json:"GRPFix" bson:"GRPFix"`
	AdtName               *string      `json:"AdtName" bson:"AdtName"`
	AgrName               *string      `json:"AgrName" bson:"AgrName"`
	CmpName               *string      `json:"CmpName" bson:"CmpName"`
	CnlName               *string      `json:"CnlName" bson:"CnlName"`
	TP                    *string      `json:"TP" bson:"TP"`
	Budget                *float64     `json:"Budget" bson:"Budget"`
	CoordCost             *float64     `json:"CoordCost" bson:"CoordCost"`
	Cost                  *float64     `json:"Cost" bson:"Cost"`
	FixPercentPrime       *float64     `json:"FixPercentPrime" bson:"FixPercentPrime"`
	FloatPercent          *float64     `json:"FloatPercent" bson:"FloatPercent"`
	FloatPercentPrime     *float64     `json:"FloatPercentPrime" bson:"FloatPercentPrime"`
	GRP                   *float64     `json:"GRP" bson:"GRP"`
	GRPWithoutKF          *float64     `json:"GRPWithoutKF" bson:"GRPWithoutKF"`
	Timestamp             time.Time    `json:"Timestamp" bson:"Timestamp"`
	Quality               []BudgetItem `json:"Quality" bson:"Quality"`
}

func (*Budget) Key

func (budget *Budget) Key() string

type BudgetConfiguration

type BudgetConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

func (*BudgetConfiguration) InitJob

func (cfg *BudgetConfiguration) InitJob() func()

func (*BudgetConfiguration) StartJob

func (cfg *BudgetConfiguration) StartJob() chan error

type BudgetItem

type BudgetItem struct {
	RankID            *int64   `json:"RankID" bson:"RankID"`
	Percent           *float64 `json:"Percent" bson:"Percent"`
	BudgetOffprime    *float64 `json:"BudgetOffprime" bson:"BudgetOffprime"`
	BudgetPrime       *float64 `json:"BudgetPrime" bson:"BudgetPrime"`
	InventoryOffprime *float64 `json:"InventoryOffprime" bson:"InventoryOffprime"`
	InventoryPrime    *float64 `json:"InventoryPrime" bson:"InventoryPrime"`
	PercentPrime      *float64 `json:"PercentPrime" bson:"PercentPrime"`
}

type BudgetLoadRequest

type BudgetLoadRequest struct {
	StartMonth         string `json:"StartMonth" example:"201903"`
	EndMonth           string `json:"EndMonth" example:"201912"`
	SellingDirectionID string `json:"SellingDirectionID" example:"23"`
}

func (*BudgetLoadRequest) InitTasks

func (request *BudgetLoadRequest) InitTasks() (CommonResponse, error)

type BudgetQuery

type BudgetQuery struct {
	Month struct {
		Eq int64 `json:"eq" example:"201902"`
	} `json:"Month"`
	CnlID struct {
		Eq int64 `json:"eq" example:"1020335"`
	} `json:"CnlID"`
	AdtID struct {
		Ee int64 `json:"eq" example:"700068653"`
	} `json:"AdtID"`
}

type BudgetsUpdateRequest

type BudgetsUpdateRequest struct {
	S3Key string
}

func (*BudgetsUpdateRequest) Update

func (request *BudgetsUpdateRequest) Update() error

type ChanelAspect

type ChanelAspect struct {
	StartDate *time.Time `json:"StartDate" bson:"StartDate"`
	EndDate   *time.Time `json:"EndDate" bson:"EndDate"`
	ID        *int64     `json:"ID" bson:"ID"`
}

type ChangeFilms

type ChangeFilms struct {
	goConvert.UnsortedMap
}

func (*ChangeFilms) GetData

func (request *ChangeFilms) GetData() (*StreamResponse, error)

type ChangeMPlanFilmPlannedInventory

type ChangeMPlanFilmPlannedInventory struct {
	goConvert.UnsortedMap
}

func (*ChangeMPlanFilmPlannedInventory) GetDataJson

func (request *ChangeMPlanFilmPlannedInventory) GetDataJson() (*JsonResponse, error)

func (*ChangeMPlanFilmPlannedInventory) GetDataXmlZip

func (request *ChangeMPlanFilmPlannedInventory) GetDataXmlZip() (*StreamResponse, error)

func (*ChangeMPlanFilmPlannedInventory) UploadToS3

func (request *ChangeMPlanFilmPlannedInventory) UploadToS3() error

type ChangeSpot

type ChangeSpot struct {
	goConvert.UnsortedMap
}

func (*ChangeSpot) GetDataJson

func (request *ChangeSpot) GetDataJson() (*JsonResponse, error)

func (*ChangeSpot) GetDataXmlZip

func (request *ChangeSpot) GetDataXmlZip() (*StreamResponse, error)

func (*ChangeSpot) UploadToS3

func (request *ChangeSpot) UploadToS3() error

type Channel

type Channel struct {
	ID                 *int64         `json:"ID" bson:"ID"`
	MainChnl           *int64         `json:"MainChnl" bson:"MainChnl"`
	SellingDirectionID *int64         `json:"SellingDirectionID" bson:"SellingDirectionID"`
	CnlOrderNo         *int64         `json:"CnlOrderNo" bson:"CnlOrderNo"`
	CnlCentralID       *int64         `json:"cnlCentralID" bson:"cnlCentralID"`
	IsDisabled         *int64         `json:"IsDisabled" bson:"IsDisabled"`
	BcpCentralID       *int64         `json:"bcpCentralID" bson:"bcpCentralID"`
	ShortName          *string        `json:"ShortName" bson:"ShortName"`
	BcpName            *string        `json:"bcpName" bson:"bcpName"`
	StartTime          *string        `json:"StartTime" bson:"StartTime"`
	EndTime            *string        `json:"EndTime" bson:"EndTime"`
	TotalOffset        *string        `json:"TotalOffset" bson:"TotalOffset"`
	Timestamp          time.Time      `json:"Timestamp" bson:"Timestamp"`
	Aspects            []ChanelAspect `json:"Aspects" bson:"Aspects"`
}

func (*Channel) Key

func (channel *Channel) Key() string

type ChannelConfiguration

type ChannelConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

func (*ChannelConfiguration) InitJob

func (cfg *ChannelConfiguration) InitJob() func()

func (*ChannelConfiguration) StartJob

func (cfg *ChannelConfiguration) StartJob() chan error

type ChannelLoadRequest

type ChannelLoadRequest struct {
	SellingDirectionID string `json:"SellingDirectionID" example:"23"`
}

func (*ChannelLoadRequest) InitTasks

func (request *ChannelLoadRequest) InitTasks() (CommonResponse, error)

type ChannelQuery

type ChannelQuery struct {
	ID struct {
		Eq int64 `json:"eq" example:"1018583"`
	} `json:"ID"`
	MainChnl struct {
		Eq int64 `json:"eq" example:"1018568"`
	} `json:"MainChnl"`
	SellingDirectionID struct {
		Ee int64 `json:"eq" example:"23"`
	} `json:"SellingDirectionID"`
}

type ChannelsUpdateRequest

type ChannelsUpdateRequest struct {
	S3Key              string
	SellingDirectionID string
}

func (*ChannelsUpdateRequest) Update

func (request *ChannelsUpdateRequest) Update() error

type CommonResponse

type CommonResponse map[string]interface{}

type CustomersWithAdvertiserDataQuery

type CustomersWithAdvertiserDataQuery struct {
	CustID struct {
		Eq int64 `json:"eq" example:"1"`
	} `json:"CustID"`
}

type CustomersWithAdvertiserQuery

type CustomersWithAdvertiserQuery struct {
	ID struct {
		Eq int64 `json:"eq" example:"1"`
	} `json:"ID"`
}

type CustomersWithAdvertisers

type CustomersWithAdvertisers struct {
	Timestamp time.Time `json:"Timestamp" bson:"Timestamp"`
	ID        *int64    `json:"ID" bson:"ID"`
	Name      *string   `json:"Name" bson:"Name"`
}

func (*CustomersWithAdvertisers) Key

type CustomersWithAdvertisersConfiguration

type CustomersWithAdvertisersConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

func (*CustomersWithAdvertisersConfiguration) InitJob

func (cfg *CustomersWithAdvertisersConfiguration) InitJob() func()

func (*CustomersWithAdvertisersConfiguration) StartJob

func (cfg *CustomersWithAdvertisersConfiguration) StartJob() chan error

type CustomersWithAdvertisersData

type CustomersWithAdvertisersData struct {
	Timestamp time.Time `json:"Timestamp" bson:"Timestamp"`
	CustID    *int64    `json:"CustID" bson:"CustID"`
	AdvID     *int64    `json:"AdvID" bson:"AdvID"`
}

func (*CustomersWithAdvertisersData) Key

type CustomersWithAdvertisersLoadRequest

type CustomersWithAdvertisersLoadRequest struct {
	SellingDirectionID string `json:"SellingDirectionID"`
}

func (*CustomersWithAdvertisersLoadRequest) InitTasks

type CustomersWithAdvertisersUpdateRequest

type CustomersWithAdvertisersUpdateRequest struct {
	S3Key string
}

func (*CustomersWithAdvertisersUpdateRequest) Update

func (request *CustomersWithAdvertisersUpdateRequest) Update() error

type DeleteMPlanFilm

type DeleteMPlanFilm struct {
	goConvert.UnsortedMap
}

func (*DeleteMPlanFilm) GetDataJson

func (request *DeleteMPlanFilm) GetDataJson() (*JsonResponse, error)

func (*DeleteMPlanFilm) GetDataXmlZip

func (request *DeleteMPlanFilm) GetDataXmlZip() (*StreamResponse, error)

func (*DeleteMPlanFilm) UploadToS3

func (request *DeleteMPlanFilm) UploadToS3() error

type DeleteSpot

type DeleteSpot struct {
	goConvert.UnsortedMap
}

func (*DeleteSpot) GetDataJson

func (request *DeleteSpot) GetDataJson() (*JsonResponse, error)

func (*DeleteSpot) GetDataXmlZip

func (request *DeleteSpot) GetDataXmlZip() (*StreamResponse, error)

func (*DeleteSpot) UploadToS3

func (request *DeleteSpot) UploadToS3() error

type DeletedSpotInfo

type DeletedSpotInfo struct {
	AgrID                  *int64     `json:"AgrID" bson:"AgrID"`
	OrdID                  *int64     `json:"OrdID" bson:"OrdID"`
	FilmID                 *int64     `json:"FilmID" bson:"FilmID"`
	FilmDur                *int64     `json:"FilmDur" bson:"FilmDur"`
	BlockDate              *int64     `json:"BlockDate" bson:"BlockDate"`
	BlockTime              *int64     `json:"BlockTime" bson:"BlockTime"`
	Position               *int64     `json:"Position" bson:"Position"`
	BlockNumber            *int64     `json:"BlockNumber" bson:"BlockNumber"`
	Reason                 *int64     `json:"Reason" bson:"Reason"`
	AffiliationType        *int64     `json:"AffiliationType" bson:"AffiliationType"`
	CurrentAuctionBidValue *int64     `json:"CurrentAuctionBidValue" bson:"CurrentAuctionBidValue"`
	BlockID                *int64     `json:"BlockID" bson:"BlockID"`
	SpotID                 *int64     `json:"SpotID" bson:"SpotID"`
	AgrName                *string    `json:"AgrName" bson:"AgrName"`
	CnlName                *string    `json:"CnlName" bson:"CnlName"`
	PrgName                *string    `json:"PrgName" bson:"PrgName"`
	OrdName                *string    `json:"OrdName" bson:"OrdName"`
	FilmName               *string    `json:"FilmName" bson:"FilmName"`
	FilmVersion            *string    `json:"FilmVersion" bson:"FilmVersion"`
	DeleteDateTime         *time.Time `json:"DeleteDateTime" bson:"DeleteDateTime"`
	Timestamp              time.Time  `json:"Timestamp" bson:"Timestamp"`
}

func (*DeletedSpotInfo) Key

func (deletedSpotInfo *DeletedSpotInfo) Key() string

type DeletedSpotInfoConfiguration

type DeletedSpotInfoConfiguration struct {
	Cron    string `json:"cron"`
	Loading bool   `json:"loading"`
}

func (*DeletedSpotInfoConfiguration) InitJob

func (cfg *DeletedSpotInfoConfiguration) InitJob() func()

func (*DeletedSpotInfoConfiguration) StartJob

func (cfg *DeletedSpotInfoConfiguration) StartJob() chan error

type DeletedSpotInfoUpdateRequest

type DeletedSpotInfoUpdateRequest struct {
	S3Key string
}

func (*DeletedSpotInfoUpdateRequest) Update

func (request *DeletedSpotInfoUpdateRequest) Update() error

type Detail

type Detail struct {
	SellingDirectionID *int64     `json:"SellingDirectionID" bson:"SellingDirectionID"`
	OrderNo            *int64     `json:"OrderNo" bson:"OrderNo"`
	UsesAuction        *bool      `json:"UsesAuction" bson:"UsesAuction"`
	StartDate          *time.Time `json:"StartDate" bson:"StartDate"`
	EndDate            *time.Time `json:"EndDate" bson:"EndDate"`
}

type GetAdvMessages

type GetAdvMessages struct {
	goConvert.UnsortedMap
}

func (*GetAdvMessages) GetDataJson

func (request *GetAdvMessages) GetDataJson() (*JsonResponse, error)

func (*GetAdvMessages) GetDataXmlZip

func (request *GetAdvMessages) GetDataXmlZip() (*StreamResponse, error)

func (*GetAdvMessages) UploadToS3

func (request *GetAdvMessages) UploadToS3() (*MqUpdateMessage, error)

type GetBudgets

type GetBudgets struct {
	goConvert.UnsortedMap
}

func (*GetBudgets) GetDataJson

func (request *GetBudgets) GetDataJson() (*JsonResponse, error)

func (*GetBudgets) GetDataXmlZip

func (request *GetBudgets) GetDataXmlZip() (*StreamResponse, error)

func (*GetBudgets) UploadToS3

func (request *GetBudgets) UploadToS3() (*MqUpdateMessage, error)

type GetChannels

type GetChannels struct {
	goConvert.UnsortedMap
}

func (*GetChannels) GetDataJson

func (request *GetChannels) GetDataJson() (*JsonResponse, error)

func (*GetChannels) GetDataXmlZip

func (request *GetChannels) GetDataXmlZip() (*StreamResponse, error)

func (*GetChannels) UploadToS3

func (request *GetChannels) UploadToS3() (*MqUpdateMessage, error)

type GetCustomersWithAdvertisers

type GetCustomersWithAdvertisers struct {
	goConvert.UnsortedMap
}

func (*GetCustomersWithAdvertisers) GetDataJson

func (request *GetCustomersWithAdvertisers) GetDataJson() (*JsonResponse, error)

func (*GetCustomersWithAdvertisers) GetDataXmlZip

func (request *GetCustomersWithAdvertisers) GetDataXmlZip() (*StreamResponse, error)

func (*GetCustomersWithAdvertisers) UploadToS3

func (request *GetCustomersWithAdvertisers) UploadToS3() (*MqUpdateMessage, error)

type GetDeletedSpotInfo

type GetDeletedSpotInfo struct {
	goConvert.UnsortedMap
}

func (*GetDeletedSpotInfo) GetDataJson

func (request *GetDeletedSpotInfo) GetDataJson() (*JsonResponse, error)

func (*GetDeletedSpotInfo) GetDataXmlZip

func (request *GetDeletedSpotInfo) GetDataXmlZip() (*StreamResponse, error)

func (*GetDeletedSpotInfo) UploadToS3

func (request *GetDeletedSpotInfo) UploadToS3() (*MqUpdateMessage, error)

type GetMPLans

type GetMPLans struct {
	goConvert.UnsortedMap
}

func (*GetMPLans) GetDataJson

func (request *GetMPLans) GetDataJson() (*JsonResponse, error)

func (*GetMPLans) GetDataXmlZip

func (request *GetMPLans) GetDataXmlZip() (*StreamResponse, error)

func (*GetMPLans) UploadToS3

func (request *GetMPLans) UploadToS3() (*MqUpdateMessage, error)

type GetProgramBreaks

type GetProgramBreaks struct {
	Path int
	goConvert.UnsortedMap
}

func (*GetProgramBreaks) GetDataJson

func (request *GetProgramBreaks) GetDataJson() (*JsonResponse, error)

func (*GetProgramBreaks) GetDataXmlZip

func (request *GetProgramBreaks) GetDataXmlZip() (*StreamResponse, error)

func (*GetProgramBreaks) UploadToS3

func (request *GetProgramBreaks) UploadToS3() (*MqUpdateMessage, error)

type GetProgramBreaksLight

type GetProgramBreaksLight struct {
	Path int
	goConvert.UnsortedMap
}

func (*GetProgramBreaksLight) GetDataJson

func (request *GetProgramBreaksLight) GetDataJson() (*JsonResponse, error)

func (*GetProgramBreaksLight) GetDataXmlZip

func (request *GetProgramBreaksLight) GetDataXmlZip() (*StreamResponse, error)

func (*GetProgramBreaksLight) UploadToS3

func (request *GetProgramBreaksLight) UploadToS3() (*MqUpdateMessage, error)

type GetRanks

type GetRanks struct {
	goConvert.UnsortedMap
}

func (*GetRanks) GetDataJson

func (request *GetRanks) GetDataJson() (*JsonResponse, error)

func (*GetRanks) GetDataXmlZip

func (request *GetRanks) GetDataXmlZip() (*StreamResponse, error)

func (*GetRanks) UploadToS3

func (request *GetRanks) UploadToS3() (*MqUpdateMessage, error)

type GetSpots

type GetSpots struct {
	goConvert.UnsortedMap
}

func (*GetSpots) GetDataJson

func (request *GetSpots) GetDataJson() (*JsonResponse, error)

func (*GetSpots) GetDataXmlZip

func (request *GetSpots) GetDataXmlZip() (*StreamResponse, error)

func (*GetSpots) UploadToS3

func (request *GetSpots) UploadToS3() (*MqUpdateMessage, error)

type JsonResponse

type JsonResponse struct {
	Body    interface{} `json:"body"`
	Request string      `json:"request"`
}

type Mediaplan

type Mediaplan struct {
	AdtID                 *int64                  `json:"AdtID" bson:"AdtID"`
	AdtName               *string                 `json:"AdtName" bson:"AdtName"`
	AdvID                 *int64                  `json:"AdvID" bson:"AdvID"`
	AgrID                 *int64                  `json:"AgrID" bson:"AgrID"`
	AgrName               *string                 `json:"AgrName" bson:"AgrName"`
	AllocationType        *int64                  `json:"AllocationType" bson:"AllocationType"`
	AmountFact            *float64                `json:"AmountFact" bson:"AmountFact"`
	AmountPlan            *float64                `json:"AmountPlan" bson:"AmountPlan"`
	BrandID               *int64                  `json:"BrandID" bson:"BrandID"`
	BrandName             *string                 `json:"BrandName" bson:"BrandName"`
	CPPoffprime           *float64                `json:"CPPoffprime" bson:"CPPoffprime"`
	CPPprime              *float64                `json:"CPPprime" bson:"CPPprime"`
	ComplimentId          *int64                  `json:"CommInMplID" bson:"ComplimentId"`
	ContractBeg           *int64                  `json:"ContractBeg" bson:"ContractBeg"`
	ContractEnd           *int64                  `json:"ContractEnd" bson:"ContractEnd"`
	DateFrom              *int64                  `json:"DateFrom" bson:"DateFrom"`
	DateTo                *int64                  `json:"DateTo" bson:"DateTo"`
	DealChannelStatus     *int64                  `json:"DealChannelStatus" bson:"DealChannelStatus"`
	Discounts             []MediaplanDiscountItem `json:"Discounts" bson:"Discounts"`
	DoubleAdvertiser      *bool                   `json:"DoubleAdvertiser" bson:"DoubleAdvertiser"`
	DtpID                 *int64                  `json:"DtpID" bson:"DtpID"`
	DublSpot              *int64                  `json:"DublSpot" bson:"DublSpot"`
	FbrName               *string                 `json:"FbrName" bson:"FbrName"`
	FilmDur               *int64                  `json:"FilmDur" bson:"FilmDur"`
	FilmDurKoef           *float64                `json:"FilmDurKoef" bson:"FilmDurKoef"`
	FilmID                *int64                  `json:"FilmID" bson:"FilmID"`
	FilmName              *string                 `json:"FilmName" bson:"FilmName"`
	FilmVersion           *string                 `json:"FilmVersion" bson:"FilmVersion"`
	FixPriceAsFloat       *int64                  `json:"FixPriceAsFloat" bson:"FixPriceAsFloat"`
	FixPriority           *int64                  `json:"FixPriority" bson:"FixPriority"`
	GRP                   *float64                `json:"GRP" bson:"GRP"`
	GRPShift              *float64                `json:"GRPShift" bson:"GRPShift"`
	GrpFact               *float64                `json:"GrpFact" bson:"GrpFact"`
	GrpPlan               *float64                `json:"GrpPlan" bson:"GrpPlan"`
	GrpTotal              *float64                `json:"GrpTotal" bson:"GrpTotal"`
	GrpTotalPrime         *float64                `json:"GrpTotalPrime" bson:"GrpTotalPrime"`
	HasReserve            *int64                  `json:"HasReserve" bson:"HasReserve"`
	InventoryUnitDuration *int64                  `json:"InventoryUnitDuration" bson:"InventoryUnitDuration"`
	MplCbrID              *int64                  `json:"MplCbrID" bson:"MplCbrID"`
	MplCbrName            *string                 `json:"MplCbrName" bson:"MplCbrName"`
	MplCnlID              *int64                  `json:"MplCnlID" bson:"MplCnlID"`
	MplID                 *int64                  `json:"MplID" bson:"MplID"`
	MplMonth              *string                 `json:"MplMonth" bson:"MplMonth"`
	MplName               *string                 `json:"MplName" bson:"MplName"`
	MplState              *int64                  `json:"MplState" bson:"MplState"`
	Multiple              *int64                  `json:"Multiple" bson:"Multiple"`
	OBDPos                *int64                  `json:"OBDPos" bson:"OBDPos"`
	OrdFrID               *int64                  `json:"OrdFrID" bson:"OrdFrID"`
	OrdID                 *int64                  `json:"OrdID" bson:"OrdID"`
	OrdIsTriggered        *int64                  `json:"OrdIsTriggered" bson:"OrdIsTriggered"`
	OrdName               *string                 `json:"OrdName" bson:"OrdName"`
	PBACond               *string                 `json:"PBACond" bson:"PBACond"`
	PBAObjID              *int64                  `json:"PBAObjID" bson:"PBAObjID"`
	ProdClassID           *int64                  `json:"ProdClassID" bson:"ProdClassID"`
	SellingDirection      *int64                  `json:"SellingDirection" bson:"SellingDirection"`
	SplitMessageGroupID   *int64                  `json:"SplitMessageGroupID" bson:"SplitMessageGroupID"`
	SumShift              *float64                `json:"SumShift" bson:"SumShift"`
	TPName                *string                 `json:"TPName" bson:"TPName"`
	TgrID                 *string                 `json:"TgrID" bson:"TgrID"`
	TgrName               *string                 `json:"TgrName" bson:"TgrName"`
	Timestamp             *time.Time              `json:"Timestamp" bson:"Timestamp"`
	AdvertiserId          *int64                  `json:"AdvertiserId" bson:"AdvertiserId"`
	AgreementId           *int64                  `json:"AgreementId" bson:"AgreementId"`
	ChannelId             *int64                  `json:"ChannelId" bson:"ChannelId"`
	FfoaAllocated         *int64                  `json:"ffoaAllocated" bson:"ffoaAllocated"`
	FfoaLawAcc            *int64                  `json:"ffoaLawAcc" bson:"ffoaLawAcc"`
	FilmId                *int64                  `json:"FilmId" bson:"FilmId"`
	MediaplanId           *int64                  `json:"MediaplanId" bson:"MediaplanId"`
	Month                 *int64                  `json:"Month" bson:"Month"`
	OrdBegDate            *int64                  `json:"ordBegDate" bson:"ordBegDate"`
	OrdEndDate            *int64                  `json:"ordEndDate" bson:"ordEndDate"`
	OrdManager            *string                 `json:"ordManager" bson:"ordManager"`
}

func (*Mediaplan) AggKey

func (mediaplan *Mediaplan) AggKey() string

func (*Mediaplan) Key

func (mediaplan *Mediaplan) Key() string

type MediaplanAgg

type MediaplanAgg struct {
	AdtID                   *int64     `json:"AdtID" bson:"AdtID"`
	AdtName                 *string    `json:"AdtName" bson:"AdtName"`
	AgreementId             *int64     `json:"AgreementId" bson:"AgreementId"`
	AllocationType          *int64     `json:"AllocationType" bson:"AllocationType"`
	AmountFact              *float64   `json:"AmountFact" bson:"AmountFact"`
	AmountPlan              *float64   `json:"AmountPlan" bson:"AmountPlan"`
	BrandName               *string    `json:"BrandName" bson:"BrandName"`
	Budget                  *float64   `json:"Budget" bson:"Budget"`
	ChannelId               *int64     `json:"ChannelId" bson:"ChannelId"`
	ChannelName             *string    `json:"ChannelName" bson:"ChannelName"`
	CppOffPrime             *float64   `json:"CppOffPrime" bson:"CppOffPrime"`
	CppOffPrimeWithDiscount *float64   `json:"CppOffPrimeWithDiscount" bson:"CppOffPrimeWithDiscount"`
	CppPrime                *float64   `json:"CppPrime" bson:"CppPrime"`
	CppPrimeWithDiscount    *float64   `json:"CppPrimeWithDiscount" bson:"CppPrimeWithDiscount"`
	DealChannelStatus       *int64     `json:"DealChannelStatus" bson:"DealChannelStatus"`
	FactOff                 *float64   `json:"FactOff" bson:"FactOff"`
	FactPrime               *float64   `json:"FactPrime" bson:"FactPrime"`
	FixPriority             *int64     `json:"FixPriority" bson:"FixPriority"`
	GrpPlan                 *float64   `json:"GrpPlan" bson:"GrpPlan"`
	GrpTotal                *float64   `json:"GrpTotal" bson:"GrpTotal"`
	InventoryUnitDuration   *int64     `json:"InventoryUnitDuration" bson:"InventoryUnitDuration"`
	MediaplanState          *int64     `json:"MediaplanState" bson:"MediaplanState"`
	MplID                   *int64     `json:"MplID" bson:"MplID"`
	MplMonth                *int64     `json:"MplMonth" bson:"MplMonth"`
	MplName                 *string    `json:"MplName" bson:"MplName"`
	SpotsPrimePercent       *float64   `json:"SpotsPrimePercent" bson:"SpotsPrimePercent"`
	SuperFix                *string    `json:"SuperFix" bson:"SuperFix"`
	UpdateDate              *time.Time `json:"UpdateDate" bson:"UpdateDate"`
	UserGrpPlan             *string    `json:"UserGrpPlan" bson:"UserGrpPlan"`
	WeeksInfo               []WeekInfo `json:"WeeksInfo" bson:"WeeksInfo"`
	BcpCentralID            *int64     `json:"bcpCentralID" bson:"bcpCentralID"`
	BcpName                 *string    `json:"bcpName" bson:"bcpName"`
}

func (*MediaplanAgg) Key

func (mediaplan *MediaplanAgg) Key() string

type MediaplanAggUpdateRequest

type MediaplanAggUpdateRequest struct {
	Month        int64 `json:"month" bson:"month"`
	ChannelId    int64 `json:"channelId" bson:"channelId"`
	MediaplanId  int64 `json:"mediaplanId" bson:"mediaplanId"`
	AdvertiserId int64 `json:"advertiserId" bson:"advertiserId"`
	AgreementId  int64 `json:"agreementId" bson:"agreementId"`
}

func (*MediaplanAggUpdateRequest) Update

func (request *MediaplanAggUpdateRequest) Update() error

type MediaplanConfiguration

type MediaplanConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

func (*MediaplanConfiguration) InitJob

func (cfg *MediaplanConfiguration) InitJob() func()

func (*MediaplanConfiguration) StartJob

func (cfg *MediaplanConfiguration) StartJob() chan error

type MediaplanDiscountItem

type MediaplanDiscountItem struct {
	DiscountFactor          *float64   `json:"DiscountFactor" bson:"DiscountFactor"`
	TypeID                  *int64     `json:"TypeID" bson:"TypeID"`
	IsManual                *bool      `json:"IsManual" bson:"IsManual"`
	DicountEndDate          *time.Time `json:"DicountEndDate" bson:"DicountEndDate"`
	IsSpotPositionDependent *bool      `json:"IsSpotPositionDependent" bson:"IsSpotPositionDependent"`
	DiscountTypeName        *string    `json:"DiscountTypeName" bson:"DiscountTypeName"`
	DiscountStartDate       *time.Time `json:"DiscountStartDate" bson:"DiscountStartDate"`
	ValueID                 *int64     `json:"ValueID" bson:"ValueID"`
	ApplicableToDeals       *bool      `json:"ApplicableToDeals" bson:"ApplicableToDeals"`
	ApplyingTypeID          *int64     `json:"ApplyingTypeID" bson:"ApplyingTypeID"`
	IsDiscountAggregate     *bool      `json:"IsDiscountAggregate" bson:"IsDiscountAggregate"`
	AggregationMethodName   *string    `json:"AggregationMethodName" bson:"AggregationMethodName"`
}

type MediaplanLoadRequest

type MediaplanLoadRequest struct {
	StartMonth         string `json:"StartMonth" example:"201903"`
	EndMonth           string `json:"EndMonth" example:"201912"`
	SellingDirectionID string `json:"SellingDirectionID" example:"23"`
}

func (*MediaplanLoadRequest) InitTasks

func (request *MediaplanLoadRequest) InitTasks() (CommonResponse, error)

type MediaplanQuery

type MediaplanQuery struct {
	AdtID struct {
		Eq int64 `json:"eq" example:"700068653"`
	} `json:"AdtID"`
	AgrID struct {
		Eq int64 `json:"eq" example:"81024"`
	} `json:"AgrID"`
	MplID struct {
		Eq int64 `json:"eq" example:"14824608"`
	} `json:"MplID"`
}

type MediaplanUpdateRequest

type MediaplanUpdateRequest struct {
	S3Key string
}

func (*MediaplanUpdateRequest) Update

func (request *MediaplanUpdateRequest) Update() error

type MqUpdateMessage

type MqUpdateMessage struct {
	Bucket             string `json:"bucket"`
	Key                string `json:"key"`
	Month              string `json:"month"`
	SellingDirectionID string `json:"sellingDirectionID"`
}

type ProMaster

type ProMaster struct {
	ProID     *int64    `json:"ProID" bson:"ProID"`
	PropName  *string   `json:"PropName" bson:"PropName"`
	PropValue *string   `json:"PropValue" bson:"PropValue"`
	Timestamp time.Time `json:"Timestamp" bson:"Timestamp"`
}

func (*ProMaster) Key

func (pro *ProMaster) Key() string

type ProMasterQuery

type ProMasterQuery struct {
	ProID struct {
		Eq int64 `json:"eq" example:"355114"`
	} `json:"ProID"`
	PropName struct {
		Eq string `json:"eq" example:"Ведущий"`
	} `json:"PropName"`
}

type Program

type Program struct {
	CnlID        *int64    `json:"CnlID" bson:"CnlID"`
	ProgID       *int64    `json:"ProgID" bson:"ProgID"`
	ProID        *int64    `json:"ProID" bson:"ProID"`
	Pro2         *int64    `json:"Pro2" bson:"Pro2"`
	RPID         *int64    `json:"RPID" bson:"RPID""`
	PrgName      *string   `json:"PrgName" bson:"PrgName"`
	CnlName      *string   `json:"CnlName" bson:"CnlName"`
	PrgNameShort *string   `json:"PrgNameShort" bson:"PrgNameShort"`
	Timestamp    time.Time `json:"Timestamp" bson:"Timestamp"`
}

func (*Program) Key

func (program *Program) Key() string

type ProgramBreaks

type ProgramBreaks struct {
	Month                  *int64             `json:"Month" bson:"Month"`
	CnlID                  *int64             `json:"CnlID" bson:"CnlID"`
	ProgID                 *int64             `json:"ProgID" bson:"ProgID"`
	RCID                   *int64             `json:"RCID" bson:"RCID"`
	RPID                   *int64             `json:"RPID" bson:"RPID"`
	IssTime                *int64             `json:"IssTime" bson:"IssTime"`
	IssDuration            *int64             `json:"IssDuration" bson:"IssDuration"`
	BlockTime              *int64             `json:"BlockTime" bson:"BlockTime"`
	BlockNumber            *int64             `json:"BlockNumber" bson:"BlockNumber"`
	IsPrime                *int64             `json:"IsPrime" bson:"IsPrime"`
	ProID                  *int64             `json:"ProID" bson:"ProID"`
	ProOriginalPTR         *int64             `json:"ProOriginalPTR" bson:"ProOriginalPTR"`
	BlockDistr             *int64             `json:"BlockDistr" bson:"BlockDistr"`
	SptOptions             *int64             `json:"SptOptions" bson:"SptOptions"`
	TNSBlockFactTime       *int64             `json:"TNSBlockFactTime" bson:"TNSBlockFactTime"`
	TNSBlockFactDur        *int64             `json:"TNSBlockFactDur" bson:"TNSBlockFactDur"`
	Pro2                   *int64             `json:"Pro2" bson:"Pro2"`
	BlkAdvertTypePTR       *int64             `json:"BlkAdvertTypePTR" bson:"BlkAdvertTypePTR"`
	WeekDay                *int64             `json:"WeekDay" bson:"WeekDay"`
	PrgBegTimeL            *int64             `json:"PrgBegTimeL" bson:"PrgBegTimeL"`
	PrgEndMonthL           *int64             `json:"PrgEndMonthL" bson:"PrgEndMonthL"`
	PrgBegMonthL           *int64             `json:"PrgBegMonthL" bson:"PrgBegMonthL"`
	BlkAuc                 *int64             `json:"BlkAuc" bson:"BlkAuc"`
	AucRate                *int64             `json:"AucRate" bson:"AucRate"`
	NoRating               *int64             `json:"NoRating" bson:"NoRating"`
	AvailableAuctionVolume *int64             `json:"AvailableAuctionVolume" bson:"AvailableAuctionVolume"`
	IsLocal                *int64             `json:"IsLocal" bson:"IsLocal"`
	RootRCID               *int64             `json:"RootRCID" bson:"RootRCID"`
	RootRPID               *int64             `json:"RootRPID" bson:"RootRPID"`
	IsSpecialProject       *int64             `json:"IsSpecialProject" bson:"IsSpecialProject"`
	RankID                 *int64             `json:"RankID" bson:"RankID"`
	IssID                  *int64             `json:"IssID" bson:"IssID"`
	TNSBlockFactID         *int64             `json:"TNSBlockFactID" bson:"TNSBlockFactID"`
	ForecastRateBase       *float64           `json:"ForecastRateBase" bson:"ForecastRateBase"`
	FactRateBase           *float64           `json:"FactRateBase" bson:"FactRateBase"`
	RateAll                *float64           `json:"RateAll" bson:"RateAll"`
	AuctionStepPrice       *float64           `json:"AuctionStepPrice" bson:"AuctionStepPrice"`
	PrgName                *string            `json:"PrgName" bson:"PrgName"`
	CnlName                *string            `json:"CnlName" bson:"CnlName"`
	PrgNameShort           *string            `json:"PrgNameShort" bson:"PrgNameShort"`
	TgrID                  *string            `json:"TgrID" bson:"TgrID"`
	TgrName                *string            `json:"TgrName" bson:"TgrName"`
	BlockDate              *int64             `json:"BlockDate" bson:"BlockDate"`
	Booked                 []BookedAttributes `json:"Booked" bson:"Booked"`
	BlockID                *int64             `json:"BlockID" bson:"BlockID"`
	VM                     *int64             `json:"VM" bson:"VM"`
	VR                     *int64             `json:"VR" bson:"VR"`
	DLDate                 *time.Time         `json:"DLDate" bson:"DLDate"`
	DLTrDate               *time.Time         `json:"DLTrDate" bson:"DLTrDate"`
	Timestamp              time.Time          `json:"Timestamp" bson:"Timestamp"`
}

func (*ProgramBreaks) Key

func (program *ProgramBreaks) Key() string

type ProgramBreaksConfiguration

type ProgramBreaksConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

func (*ProgramBreaksConfiguration) InitJob

func (cfg *ProgramBreaksConfiguration) InitJob() func()

func (*ProgramBreaksConfiguration) StartJob

func (cfg *ProgramBreaksConfiguration) StartJob() chan error

type ProgramBreaksLight

type ProgramBreaksLight struct {
	Booked    []BookedAttributes `json:"Booked" bson:"Booked"`
	BlockID   *int64             `json:"BlockID" bson:"BlockID"`
	VM        *int64             `json:"VM" bson:"VM"`
	VR        *int64             `json:"VR" bson:"VR"`
	Timestamp time.Time          `json:"Timestamp" bson:"Timestamp"`
}

func (*ProgramBreaksLight) Key

func (program *ProgramBreaksLight) Key() string

type ProgramBreaksLightConfiguration

type ProgramBreaksLightConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

func (*ProgramBreaksLightConfiguration) InitJob

func (cfg *ProgramBreaksLightConfiguration) InitJob() func()

func (*ProgramBreaksLightConfiguration) StartJob

func (cfg *ProgramBreaksLightConfiguration) StartJob() chan error

type ProgramBreaksLightModeLoadRequest

type ProgramBreaksLightModeLoadRequest struct {
	SellingDirectionID string `json:"SellingDirectionID" example:"23"` //ID направления продаж
	InclProgAttr       string `json:"InclProgAttr" example:"1"`        //Флаг "Заполнять секцию ProMaster". 1 - да, 0 - нет. (int, not nillable)
	InclForecast       string `json:"InclForecast" example:"1"`        //Признак "Как заполнять секцию прогнозных рейтингов". 0 - Не заполнять,  1 - Заполнять только ЦА программатика, 2 - Заполнять всеми возможными ЦА
	StartDate          string `json:"StartDate" example:"20190201"`    //Дата начала периода в формате YYYYMMDD
	EndDate            string `json:"EndDate" example:"20190202"`      //Дата окончания периода (включительно) в формате YYYYMMDD
	CnlList            []struct {
		Cnl string `json:"Cnl" example:"1018566"` //ID канала (int, not nillable)
	} `json:"CnlList"`
	ProtocolVersion string `json:"ProtocolVersion" example:"2"`
}

func (*ProgramBreaksLightModeLoadRequest) InitTasks

func (request *ProgramBreaksLightModeLoadRequest) InitTasks() (CommonResponse, error)

type ProgramBreaksLightModeQuery

type ProgramBreaksLightModeQuery struct {
	BlockID struct {
		Eq int64 `json:"eq" example:"91827134"`
	} `json:"BlockID"`
}

type ProgramBreaksLightUpdateRequest

type ProgramBreaksLightUpdateRequest struct {
	S3Key string
}

func (*ProgramBreaksLightUpdateRequest) Update

func (request *ProgramBreaksLightUpdateRequest) Update() error

type ProgramBreaksLoadRequest

type ProgramBreaksLoadRequest struct {
	SellingDirectionID string `json:"SellingDirectionID" example:"21"` //ID направления продаж
	InclProgAttr       string `json:"InclProgAttr" example:"1"`        //Флаг "Заполнять секцию ProMaster". 1 - да, 0 - нет. (int, not nillable)
	InclForecast       string `json:"InclForecast" example:"1"`        //Признак "Как заполнять секцию прогнозных рейтингов". 0 - Не заполнять,  1 - Заполнять только ЦА программатика, 2 - Заполнять всеми возможными ЦА
	StartDate          string `json:"StartDate" example:"20170701"`    //Дата начала периода в формате YYYYMMDD
	EndDate            string `json:"EndDate" example:"20170702"`      //Дата окончания периода (включительно) в формате YYYYMMDD
	CnlList            []struct {
		Cnl string `json:"Cnl" example:"1018566"` //ID канала (int, not nillable)
	} `json:"CnlList"`
	ProtocolVersion string `json:"ProtocolVersion" example:"2"`
}

func (*ProgramBreaksLoadRequest) InitTasks

func (request *ProgramBreaksLoadRequest) InitTasks() (CommonResponse, error)

type ProgramBreaksQuery

type ProgramBreaksQuery struct {
	Month struct {
		Eq int64 `json:"eq" example:"201902"`
	} `json:"Month"`
	CnlID struct {
		Eq int64 `json:"eq" example:"1020232"`
	} `json:"CnlID"`
	WeekDay struct {
		Ee int64 `json:"ge" example:"1"`
	} `json:"WeekDay"`
}

type ProgramBreaksUpdateRequest

type ProgramBreaksUpdateRequest struct {
	S3Key string
	Month string
}

func (*ProgramBreaksUpdateRequest) Update

func (request *ProgramBreaksUpdateRequest) Update() error

type ProgramUpdateRequest

type ProgramUpdateRequest struct {
}

func (*ProgramUpdateRequest) Update

func (request *ProgramUpdateRequest) Update() error

type QuerySpotsOrderBlockQuery

type QuerySpotsOrderBlockQuery struct {
	OrdID struct {
		Eq int64 `json:"eq" example:"319260"`
	} `json:"OrdID"`
	BlockID struct {
		Eq int64 `json:"eq" example:"451118797"`
	} `json:"BlockID"`
}

type RankQuery

type RankQuery struct {
	ID struct {
		Eq int64 `json:"eq" example:"1"`
	} `json:"ID"`
}

type Ranks

type Ranks struct {
	ID        *int64    `json:"ID" bson:"ID"`
	Name      *string   `json:"Name" bson:"Name"`
	Timestamp time.Time `json:"Timestamp" bson:"Timestamp"`
	Details   []Detail  `json:"Details" bson:"Details"`
}

func (*Ranks) Key

func (r *Ranks) Key() string

type RanksConfiguration

type RanksConfiguration struct {
	Cron    string `json:"cron"`
	Loading bool   `json:"loading"`
}

func (*RanksConfiguration) InitJob

func (cfg *RanksConfiguration) InitJob() func()

func (*RanksConfiguration) StartJob

func (cfg *RanksConfiguration) StartJob() chan error

type RanksLoadRequest

type RanksLoadRequest struct{}

func (*RanksLoadRequest) InitTasks

func (request *RanksLoadRequest) InitTasks() (CommonResponse, error)

type RanksUpdateRequest

type RanksUpdateRequest struct {
	S3Key string
}

func (*RanksUpdateRequest) Update

func (request *RanksUpdateRequest) Update() error

type SetSpotPosition

type SetSpotPosition struct {
	goConvert.UnsortedMap
}

func (*SetSpotPosition) GetDataJson

func (request *SetSpotPosition) GetDataJson() (*JsonResponse, error)

func (*SetSpotPosition) GetDataXmlZip

func (request *SetSpotPosition) GetDataXmlZip() (*StreamResponse, error)

func (*SetSpotPosition) UploadToS3

func (request *SetSpotPosition) UploadToS3() error

type Spot

type Spot struct {
	Rating30               *float64   `json:"Rating30" bson:"Rating30"`
	IsPrime                *int64     `json:"IsPrime" bson:"IsPrime"`
	FilmID                 *int64     `json:"FilmID" bson:"FilmID"`
	FilmVersion            *string    `json:"FilmVersion" bson:"FilmVersion"`
	FilmName               *string    `json:"FilmName" bson:"FilmName"`
	FilmDur                *int64     `json:"FilmDur" bson:"FilmDur"`
	SpotPullRating         *float64   `json:"SpotPullRating" bson:"SpotPullRating"`
	DLDate                 *time.Time `json:"DLDate" bson:"DLDate"`
	SptChnlPTR             *int64     `json:"sptChnlPTR" bson:"SptChnlPTR"`
	CommInMplID            *int64     `json:"CommInMplID" bson:"CommInMplID"`
	Positioning            *int64     `json:"Positioning" bson:"Positioning"`
	AgrID                  *int64     `json:"AgrID" bson:"AgrID"`
	MplID                  *int64     `json:"MplID" bson:"MplID"`
	OrdID                  *int64     `json:"OrdID" bson:"OrdID"`
	AtpID                  *int64     `json:"AtpID" bson:"AtpID"`
	DtpID                  *int64     `json:"DtpID" bson:"DtpID"`
	TgrID                  *int64     `json:"TgrID" bson:"TgrID"`
	SptDateL               *int64     `json:"SptDateL" bson:"SptDateL"`
	FloatPriority          *int64     `json:"FloatPriority" bson:"FloatPriority"`
	CurrentAuctionBidValue *int64     `json:"CurrentAuctionBidValue" bson:"CurrentAuctionBidValue"`
	SpotOrderNo            *int64     `json:"SpotOrderNo" bson:"SpotOrderNo"`
	SpotBroadcastTime      *int64     `json:"SpotBroadcastTime" bson:"SpotBroadcastTime"`
	SpotFactBroadcastTime  *int64     `json:"SpotFactBroadcastTime" bson:"SpotFactBroadcastTime"`
	AllocationType         *int64     `json:"AllocationType" bson:"AllocationType"`
	FixPriority            *int64     `json:"FixPriority" bson:"FixPriority"`
	SpotReserve            *int64     `json:"SpotReserve" bson:"SpotReserve"`
	RankID                 *int64     `json:"RankID" bson:"RankID"`
	SpotID                 *int64     `json:"SpotID" bson:"SpotID"`
	BlockID                *int64     `json:"BlockID" bson:"BlockID"`
	TNSSpotsID             *int64     `json:"TNSSpotsID" bson:"TNSSpotsID"`
	TNSBlockID             *int64     `json:"TNSBlockID" bson:"TNSBlockID"`
	Rating                 *float64   `json:"Rating" bson:"Rating"`
	BaseRating             *float64   `json:"BaseRating" bson:"BaseRating"`
	OTS                    *float64   `json:"OTS" bson:"OTS"`
	IRating                *float64   `json:"IRating" bson:"IRating"`
	IBaseRating            *float64   `json:"IBaseRating" bson:"IBaseRating"`
	IsHumanBeing           *bool      `json:"IsHumanBeing" bson:"IsHumanBeing"`
	Timestamp              time.Time  `json:"Timestamp" bson:"Timestamp"`
}

func (*Spot) Key

func (spot *Spot) Key() string

type SpotOrderBlock

type SpotOrderBlock struct {
	OrdID     *int      `json:"OrdID" bson:"OrdID"`
	BlockID   *int64    `json:"BlockID" bson:"BlockID"`
	Rate      *float64  `json:"Rate" bson:"Rate"`
	IRate     *float64  `json:"IRate" bson:"IRate"`
	Timestamp time.Time `json:"Timestamp" bson:"Timestamp"`
}

func (*SpotOrderBlock) Key

func (orderBlock *SpotOrderBlock) Key() string

type SpotsConfiguration

type SpotsConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

func (*SpotsConfiguration) InitJob

func (cfg *SpotsConfiguration) InitJob() func()

func (*SpotsConfiguration) StartJob

func (cfg *SpotsConfiguration) StartJob() chan error

type SpotsLoadRequest

type SpotsLoadRequest struct {
	SellingDirectionID string `json:"SellingDirectionID"`
	StartDate          string `json:"StartDate"`
	EndDate            string `json:"EndDate"`
	InclOrdBlocks      string `json:"InclOrdBlocks"`
	ChannelList        []struct {
		Cnl  string `json:"Cnl"`
		Main string `json:"Main"`
	} `json:"ChannelList"`
	AdtList []struct {
		AdtID string `json:"AdtID"`
	} `json:"AdtList"`
}

func (*SpotsLoadRequest) InitTasks

func (request *SpotsLoadRequest) InitTasks() (CommonResponse, error)

type SpotsQuery

type SpotsQuery struct {
	Rating struct {
		Eq float64 `json:"eq" example:"0.58321"`
	} `json:"Rating"`
	SpotID struct {
		Eq int64 `json:"eq" example:"451118797"`
	} `json:"SpotID"`
}

type SpotsUpdateRequest

type SpotsUpdateRequest struct {
	S3Key string
	Month string
}

func (*SpotsUpdateRequest) Update

func (request *SpotsUpdateRequest) Update() error

type StreamResponse

type StreamResponse struct {
	Body    []byte `json:"body"`
	Request string `json:"request"`
}

type SwaggerAddMPlanFilmRequest

type SwaggerAddMPlanFilmRequest struct {
	MplID     string `json:"MplID" bson:"MplID"`
	FilmID    string `json:"FilmID" bson:"FilmID"`
	StartDate string `json:"StartDate" bson:"StartDate"`
	EndDate   string `json:"EndDate" bson:"EndDate"`
}

type SwaggerAddMPlanRequest

type SwaggerAddMPlanRequest struct {
	OrdID             string `json:"OrdID" bson:"OrdID"`
	MplCnlID          string `json:"MplCnlID" bson:"MplCnlID"`
	DateFrom          string `json:"DateFrom" bson:"DateFrom"`
	DateTo            string `json:"DateTo" bson:"DateTo"`
	MplName           string `json:"MplName" bson:"MplName"`
	BrandID           string `json:"BrandID" bson:"BrandID"`
	MultiSpotsInBlock string `json:"MultiSpotsInBlock" bson:"MultiSpotsInBlock"`
}

type SwaggerAddSpotRequest

type SwaggerAddSpotRequest struct {
	BlockID         string `json:"BlockID" bson:"BlockID"`
	FilmID          string `json:"FilmID" bson:"FilmID"`
	Position        string `json:"Position" bson:"Position"`
	FixedPosition   string `json:"FixedPosition" bson:"FixedPosition"`
	AuctionBidValue string `json:"AuctionBidValue" bson:"AuctionBidValue"`
}

type SwaggerChangeFilmsRequest

type SwaggerChangeFilmsRequest struct {
	ChangeFilms []struct {
		FakeSpotIDs  string `json:"FakeSpotIDs"`
		CommInMplIDs string `json:"CommInMplIDs"`
	} `json:"ChangeFilms"`
}

type SwaggerChangeMPlanFilmPlannedInventoryRequest

type SwaggerChangeMPlanFilmPlannedInventoryRequest struct {
	Data []struct {
		CommInMpl []struct {
			ID        string `json:"ID"`
			Inventory string `json:"Inventory"`
		} `json:"CommInMpl"`
	} `json:"data"`
}

type SwaggerChangeSpotRequest

type SwaggerChangeSpotRequest struct {
	FirstSpotID  string `json:"FirstSpotID"`
	SecondSpotID string `json:"SecondSpotID"`
}

type SwaggerDeleteMPlanFilmRequest

type SwaggerDeleteMPlanFilmRequest struct {
	CommInMplID string `json:"CommInMplID"`
}

type SwaggerDeleteSpotRequest

type SwaggerDeleteSpotRequest struct {
	SpotID string `json:"SpotID"`
}

type SwaggerGetAdvMessagesRequest

type SwaggerGetAdvMessagesRequest struct {
	CreationDateStart string `json:"CreationDateStart"`
	CreationDateEnd   string `json:"CreationDateEnd"`
	Advertisers       []struct {
		Id string `json:"ID"`
	} `json:"Advertisers"`
	Aspects []struct {
		Id string `json:"ID"`
	} `json:"Aspects"`
	AdvertisingMessageIDs []struct {
		Id string `json:"ID"`
	} `json:"AdvertisingMessageIDs"`
	FillMaterialTags string `json:"FillMaterialTags"`
}

type SwaggerGetBudgetsRequest

type SwaggerGetBudgetsRequest struct {
	SellingDirectionID string `json:"SellingDirectionID"`
	StartMonth         string `json:"StartMonth"`
	EndMonth           string `json:"EndMonth"`
	AdvertiserList     []struct {
		Id string `json:"ID"`
	} `json:"AdvertiserList"`
	ChannelList []struct {
		Id string `json:"ID"`
	} `json:"ChannelList"`
}

type SwaggerGetChannelsRequest

type SwaggerGetChannelsRequest struct {
	SellingDirectionID string `json:"SellingDirectionID"`
}

type SwaggerGetCustomersWithAdvertisersRequest

type SwaggerGetCustomersWithAdvertisersRequest struct {
	SellingDirectionID string `json:"SellingDirectionID"`
}

type SwaggerGetDeletedSpotInfoRequest

type SwaggerGetDeletedSpotInfoRequest struct {
	DateStart  string `json:"DateStart"`
	DateEnd    string `json:"DateEnd"`
	Agreements []struct {
		Id string `json:"ID"`
	} `json:"Agreements"`
}

type SwaggerGetMPLansRequest

type SwaggerGetMPLansRequest struct {
	SellingDirectionID string `json:"SellingDirectionID"`
	StartMonth         string `json:"StartMonth"`
	EndMonth           string `json:"EndMonth"`
	AdtList            []struct {
		AdtID string `json:"AdtID"`
	} `json:"AdtList"`
	ChannelList []struct {
		Cnl string `json:"Cnl"`
	} `json:"ChannelList"`
	IncludeEmpty string `json:"IncludeEmpty"`
}

type SwaggerGetProgramBreaksRequest

type SwaggerGetProgramBreaksRequest struct {
	SellingDirectionID string `json:"SellingDirectionID" example:"21"` //ID направления продаж
	InclProgAttr       string `json:"InclProgAttr" example:"1"`        //Флаг "Заполнять секцию ProMaster". 1 - да, 0 - нет. (int, not nillable)
	InclForecast       string `json:"InclForecast" example:"1"`        //Признак "Как заполнять секцию прогнозных рейтингов". 0 - Не заполнять,  1 - Заполнять только ЦА программатика, 2 - Заполнять всеми возможными ЦА
	AudRatDec          string `json:"AudRatDec" example:"2"`           //Внимание! Этот элемент является устаревшим. Его значение игнорируется (при расчетах всегда используется значение 9) и скоро он будет удален. Кол-во десятичных знаков округления. Допустимы значения 1..9. По умолчанию - 9. (int, nillable)
	StartDate          string `json:"StartDate" example:"20170701"`    //Дата начала периода в формате YYYYMMDD
	EndDate            string `json:"EndDate" example:"20170702"`      //Дата окончания периода (включительно) в формате YYYYMMDD
	LightMode          string `json:"LightMode" example:"0"`           //Флаг "облегченного режима". Выходной xml имеет другой формат
	CnlList            []struct {
		Cnl string `json:"Cnl" example:"1018566"` //ID канала (int, not nillable)
	} `json:"CnlList"`
	ProtocolVersion string `json:"ProtocolVersion" example:"2"` //Флаг "ожидаемый формат ответа". (int, nillable). Допускается отсутствие этого элемента, в этом случае используется формат по умолчанию (1.0). 1 - старый формат (1.0), 2 - Новый формат (2.0), null - формат по-умолчанию (1.0). Внимание! В ближайших версиях этот элемент станет обязательным и не нулабельным.
}

type SwaggerGetRanksRequest

type SwaggerGetRanksRequest struct {
}

type SwaggerGetSpotsRequest

type SwaggerGetSpotsRequest struct {
	SellingDirectionID string `json:"SellingDirectionID"`
	StartDate          string `json:"StartDate"`
	EndDate            string `json:"EndDate"`
	InclOrdBlocks      string `json:"InclOrdBlocks"`
	ChannelList        []struct {
		Cnl  string `json:"Cnl"`
		Main string `json:"Main"`
	} `json:"ChannelList"`
	AdtList []struct {
		AdtID string `json:"AdtID"`
	} `json:"AdtList"`
}

type SwaggerSetSpotPositionRequest

type SwaggerSetSpotPositionRequest struct {
	SpotID   string `json:"SpotID"`
	Distance string `json:"Distance"`
}

type WeekInfo

type WeekInfo struct {
	Number int       `json:"Number"`
	Close  bool      `json:"Close"`
	Date   time.Time `json:"Date"`
}

Jump to

Keyboard shortcuts

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