routes

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMPlanFilm

func DeleteMPlanFilm(w http.ResponseWriter, r *http.Request)

DeleteMPlanFilm godoc @Summary Удаляет ролик из медиаплана. @Description Одним из требований для удаления является отсутствие соответствующего этому роличному сплиту размещения. @ID routes-delete-mediaplan-film @Tags Медиапланы @Param body body models.SwaggerDeleteMPlanFilmRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/mediaplan/film [delete]

func DeleteSpot

func DeleteSpot(w http.ResponseWriter, r *http.Request)

DeleteSpot godoc @Summary Удаление спота в блоке. @Description Удаление спота в блоке. @ID routes-delete-spot @Tags Споты @Param body body models.SwaggerDeleteSpotRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/spot [delete]

func GetQueuesMetrics

func GetQueuesMetrics(w http.ResponseWriter, r *http.Request)

GetQueuesMetrics godoc @Summary Состояние очередей. @Description Состояние очередей. @ID routes-get-mq-queue-metrics @Tags MQ @Accept json @Produce json @Success 200 {object} []routes.MqInfo @Router /api/v1/mq/queues [get]

func Health

func Health(w http.ResponseWriter, r *http.Request)

Health godoc @Summary Проверка статуса сервиса @Description Проверка статуса сервиса @ID routes-health @Tags Проверка сервиса @Accept json @Produce json @Success 200 @Router /api/v1 [get]

func PostAddMPlanFilm

func PostAddMPlanFilm(w http.ResponseWriter, r *http.Request)

PostAddMPlanFilm godoc @Summary “Втягивает” ролик в медиаплан. Период ролика в медиаплане устанавливается равным периоду медиаплана. @Description “Втягивает” ролик в медиаплан. Период ролика в медиаплане устанавливается равным периоду медиаплана. @ID routes-add-mediaplan-film @Tags Медиапланы @Param body body models.SwaggerAddMPlanFilmRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/mediaplan/film [post]

func PostAdvMessagesQuery

func PostAdvMessagesQuery(w http.ResponseWriter, r *http.Request)

PostAdvMessagesQuery godoc @Summary Загрузку сохраненных роликов. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-adv-messages @Tags Справочники @Param body body models.AdvMessageQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/adv-messages/query [post]

func PostAggMPLansQuery

func PostAggMPLansQuery(w http.ResponseWriter, r *http.Request)

PostAggMPLansQuery godoc @Summary Загрузка агрегированных данных. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-agg-mediaplans @Tags Медиапланы @Param body body models.AggMediaplanQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/agg-mediaplan/query [post]

func PostBudgetsQuery

func PostBudgetsQuery(w http.ResponseWriter, r *http.Request)

PostBudgetsQuery godoc @Summary Загрузка сохраненных бюджетов. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-budgets @Tags Сделки @Param body body models.BudgetQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/budgets/query [post]

func PostChangeFilms

func PostChangeFilms(w http.ResponseWriter, r *http.Request)

PostChangeFilms godoc @Summary Заменяет в спотах существующие ролики в медиапланах на указанные в CommInMplIDs (не больше трех). @Description Заменяет в спотах существующие ролики в медиапланах на указанные в CommInMplIDs (не больше трех). @ID routes-change-films @Tags Споты @Param body body models.SwaggerChangeFilmsRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/spot/change-films [post]

func PostChangeMPlanFilmPlannedInventory

func PostChangeMPlanFilmPlannedInventory(w http.ResponseWriter, r *http.Request)

PostChangeMPlanFilmPlannedInventory godoc @Summary Замена планового инвентаря роликов в медиаплане. @Description Метод допускает массовое редактирование, при этом все ролики должны относиться к одному медиаплану. @ID routes-change-mediaplan-film-planned-inventory @Tags Медиапланы @Param body body models.SwaggerChangeMPlanFilmPlannedInventoryRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/mediaplan/change-film-planned-inventory [post]

func PostChangeSpot

func PostChangeSpot(w http.ResponseWriter, r *http.Request)

PostChangeSpot godoc @Summary Замена спота в блок. @Description Замена спота в блок. @ID routes-change-spot @Tags Споты @Param body body models.SwaggerChangeSpotRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/spot/change [post]

func PostChannelsQuery

func PostChannelsQuery(w http.ResponseWriter, r *http.Request)

PostChannelsQuery godoc @Summary Загрузку сохраненных каналов. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-channels @Tags Справочники @Param body body models.ChannelQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/channels/query [post]

func PostCustomersWithAdvertisersDataQuery

func PostCustomersWithAdvertisersDataQuery(w http.ResponseWriter, r *http.Request)

PostCustomersWithAdvertisersDataQuery godoc @Summary Загрузка сохраненных заказчиков с рекламодеталями для заданного направления продаж. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-customers-with-advertisers-data-query @Tags Сделки @Param body body models.CustomersWithAdvertiserDataQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/customers-with-advertisers-data/query [post]

func PostCustomersWithAdvertisersQuery

func PostCustomersWithAdvertisersQuery(w http.ResponseWriter, r *http.Request)

PostCustomersWithAdvertisersQuery godoc @Summary Загрузка сохраненных заказчиков с рекламодеталями для заданного направления продаж. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-customers-with-advertisers-query @Tags Сделки @Param body body models.CustomersWithAdvertiserQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/customers-with-advertisers/query [post]

func PostGetAdvMessages

func PostGetAdvMessages(w http.ResponseWriter, r *http.Request)

PostGetAdvMessages godoc @Summary Возвращает список роликов, созданных в указанный период времени. Список отфильтрован по правам НВ. @Description Возвращает список роликов, созданных в указанный период времени. Список отфильтрован по правам НВ. @ID routes-get-adv-messages @Tags Справочники @Param body body models.SwaggerGetAdvMessagesRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/adv-messages [post]

func PostGetBudgets

func PostGetBudgets(w http.ResponseWriter, r *http.Request)

PostGetBudgets godoc @Summary Возвращает данные по сделкам в разрезе канало-периодов. @Description Возвращает данные по сделкам в разрезе канало-периодов. @ID routes-get-budgets @Tags Сделки @Param body body models.SwaggerGetBudgetsRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/budgets [post]

func PostGetChannels

func PostGetChannels(w http.ResponseWriter, r *http.Request)

PostGetChannels godoc @Summary Возвращает отфильтрованный по правам НВ список каналов (точек врезки) указанного направления продаж. @Description Результат включает активные в настоящий момент для размещения каналы, а также каналы, которые станут активными в течение ближайших трех месяцев. @ID routes-get-channels @Tags Справочники @Param body body models.SwaggerGetChannelsRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/channels [post]

func PostGetCustomersWithAdvertisers

func PostGetCustomersWithAdvertisers(w http.ResponseWriter, r *http.Request)

PostGetCustomersWithAdvertisers godoc @Summary Возвращает список заказчиков с рекламодеталями для заданного направления продаж. @Description Возвращает список заказчиков с рекламодеталями для заданного направления продаж. @ID routes-customers-with-advertisers @Tags Сделки @Param body body models.SwaggerGetCustomersWithAdvertisersRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/customers-with-advertisers [post]

func PostGetDeletedSpotInfo

func PostGetDeletedSpotInfo(w http.ResponseWriter, r *http.Request)

PostGetDeletedSpotInfo godoc @Summary Возвращает информацию об удаленных за период спотах @Description Возвращает информацию об удаленных за период спотах @ID routes-get-deleted-spots-info @Tags Споты @Param body body models.SwaggerGetDeletedSpotInfoRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/spot/deleted-info [post]

func PostGetMPLans

func PostGetMPLans(w http.ResponseWriter, r *http.Request)

PostGetMPLans godoc @Summary Возвращает доступные медиапланы. Минимальный кванта периода начитки - 1 месяц (с первого по последнее число). @Description Возвращает доступные медиапланы. Минимальный кванта периода начитки - 1 месяц (с первого по последнее число). @ID routes-get-mediaplans @Tags Медиапланы @Param body body models.SwaggerGetMPLansRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/mediaplan [post]

func PostGetProgramBreaks

func PostGetProgramBreaks(w http.ResponseWriter, r *http.Request)

PostGetProgramBreaks godoc @Summary Возвращает Данные по блокам + занятые объемы блоков. @Description Возвращает Данные по блокам + занятые объемы блоков. @ID routes-get-program-breaks @Tags Блоки @Param body body models.SwaggerGetProgramBreaksRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/program-breaks [post]

func PostGetRanks

func PostGetRanks(w http.ResponseWriter, r *http.Request)

PostGetRanks godoc @Summary Возвращает справочник рангов размещения. @Description Возвращает справочник рангов размещения. @ID routes-get-ranks @Tags Справочники @Param body body models.SwaggerGetRanksRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/ranks [post]

func PostGetSpots

func PostGetSpots(w http.ResponseWriter, r *http.Request)

PostGetSpots godoc @Summary Возвращает список спотов. @Description Возвращает список спотов. @ID routes-get-spots @Tags Споты @Param body body models.SwaggerGetSpotsRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/spot [post]

func PostListBackups

func PostListBackups(w http.ResponseWriter, r *http.Request)

PostListBackups godoc @Summary Список бэкапов MongoDB. @Description - Возвращает список бэкапов, s3Key. @ID routes-post-backup-list @Tags Backup @Param body body mongodb_backup.SwaggerListBackupsRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/backup-list [post]

func PostLoadAdvMessages

func PostLoadAdvMessages(w http.ResponseWriter, r *http.Request)

PostLoadAdvMessages godoc @Summary Создание задач, на загрузку роликов. @Description Создание задач, на загрузку роликов, за выбранный период. @ID routes-load-adv-messages @Tags Справочники @Param body body models.AdvMessagesLoadRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/adv-messages/load [post]

func PostLoadBudgets

func PostLoadBudgets(w http.ResponseWriter, r *http.Request)

PostLoadBudgets godoc @Summary Создание задач, на загрузку бюджетов. @Description Создание задач, на загрузку бюджетов, за выбранный период. @ID routes-load-budgets @Tags Сделки @Param body body models.BudgetLoadRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/budgets/load [post]

func PostLoadChannels

func PostLoadChannels(w http.ResponseWriter, r *http.Request)

PostLoadChannels godoc @Summary Создание задач, на загрузку каналов. @Description Создание задач, на загрузку каналов, за выбранный период. @ID routes-load-channels @Tags Справочники @Param body body models.ChannelLoadRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/channels/load [post]

func PostLoadCustomersWithAdvertisers

func PostLoadCustomersWithAdvertisers(w http.ResponseWriter, r *http.Request)

PostLoadCustomersWithAdvertisers godoc @Summary Создание задачи для загружки заказчиков с рекламодеталями для заданного направления продаж. @Description Создание задачи для загружки заказчиков с рекламодеталями для заданного направления продаж. @ID routes-customers-with-advertisers-load @Tags Сделки @Param body body models.SwaggerGetCustomersWithAdvertisersRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/customers-with-advertisers/load [post]

func PostLoadMPLans

func PostLoadMPLans(w http.ResponseWriter, r *http.Request)

PostLoadMPLans godoc @Summary Создание задач, на загрузку медиапланов. @Description Создание задач, на загрузку медиапланов. @ID routes-load-mediaplans @Tags Медиапланы @Param body body models.MediaplanLoadRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/mediaplan/load [post]

func PostLoadProgramBreaks

func PostLoadProgramBreaks(w http.ResponseWriter, r *http.Request)

PostLoadProgramBreaks godoc @Summary Создание задач, на загрузку сеток. @Description Создание задач, на загрузку сеток, за выбранный период. @ID routes-load-program-breaks @Tags Блоки @Param body body models.ProgramBreaksLoadRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/program-breaks/load [post]

func PostLoadProgramLightModeBreaks

func PostLoadProgramLightModeBreaks(w http.ResponseWriter, r *http.Request)

PostLoadProgramLightModeBreaks godoc @Summary Создание задач, на загрузку сеток Light Mode. @Description Создание задач, на загрузку сеток Light Mode, за выбранный период. @ID routes-load-program-breaks-light-mode @Tags Блоки @Param body body models.ProgramBreaksLightModeLoadRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/program-breaks-light/load [post]

func PostLoadRanks

func PostLoadRanks(w http.ResponseWriter, r *http.Request)

PostLoadRanks godoc @Summary Создание задач, на загрузку рангов размещения. @Description Создание задач, на загрузку рангов размещения. @ID routes-load-ranks @Tags Справочники @Param body body models.RanksLoadRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/ranks/load [post]

func PostLoadSpots

func PostLoadSpots(w http.ResponseWriter, r *http.Request)

PostLoadSpots godoc @Summary Создание задач на загрузку спотов. @Description Создание задач на загрузку спотов. @ID routes-load-spots @Tags Споты @Param body body models.SpotsLoadRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/spot/load [post]

func PostMPLansQuery

func PostMPLansQuery(w http.ResponseWriter, r *http.Request)

PostMPLansQuery godoc @Summary Загрузка сохраненных медиапланов. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-mediaplans @Tags Медиапланы @Param body body models.MediaplanQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/mediaplan/query [post]

func PostMongoBackup

func PostMongoBackup(w http.ResponseWriter, r *http.Request)

PostMongoBackup godoc @Summary Создает backup MongoDB. @Description - Создаем резервную копию MongoDВ. При пустых полях берет значения их config файла. @ID routes-post-backup @Tags Backup @Param body body mongodb_backup.SwaggerBackupRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/backup [post]

func PostMongoRestore

func PostMongoRestore(w http.ResponseWriter, r *http.Request)

PostMongoRestore godoc @Summary Восстановление backup MongoDB. @Description - Восстановление БД из резервной копии. Указать s3Key бэкапа. @ID routes-post-restore @Tags Backup @Param body body mongodb_backup.SwaggerRestoreRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/backup-restore [post]

func PostProgramBreaksProMasterQuery

func PostProgramBreaksProMasterQuery(w http.ResponseWriter, r *http.Request)

PostProgramBreaksProMasterQuery godoc @Summary Загрузка сохраненных сеток. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-program-breaks-pro-master @Tags Блоки @Param body body models.ProMasterQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/program-breaks/pro-master/query [post]

func PostProgramBreaksQuery

func PostProgramBreaksQuery(w http.ResponseWriter, r *http.Request)

PostProgramBreaksQuery godoc @Summary Загрузка сохраненных сеток. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-program-breaks @Tags Блоки @Param body body models.ProgramBreaksQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/program-breaks/query [post]

func PostProgramLightModeBreaksQuery

func PostProgramLightModeBreaksQuery(w http.ResponseWriter, r *http.Request)

PostProgramLightModeBreaksQuery godoc @Summary Загрузка сохраненных сеток Light Mode. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-program-breaks-light-mode @Tags Блоки @Param body body models.ProgramBreaksLightModeQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/program-breaks-light/query [post]

func PostRanksQuery

func PostRanksQuery(w http.ResponseWriter, r *http.Request)

PostRanksQuery godoc @Summary Загрузку сохраненных рангов размещения. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-ranks @Tags Справочники @Param body body models.RankQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/ranks/query [post]

func PostSetSpotPosition

func PostSetSpotPosition(w http.ResponseWriter, r *http.Request)

PostSetSpotPosition godoc @Summary Выполняет позиционирование спота.. @Description Выполняет позиционирование спота.. @ID routes-set-spot-position @Tags Споты @Param body body models.SwaggerSetSpotPositionRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/spot/set-position [post]

func PostSpotsOrderBlockQuery

func PostSpotsOrderBlockQuery(w http.ResponseWriter, r *http.Request)

PostSpotsOrderBlockQuery godoc @Summary Загрузка сохраненных спотов. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-spots-order-block @Tags Споты @Param body body models.QuerySpotsOrderBlockQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/spot/order-block/query [post]

func PostSpotsQuery

func PostSpotsQuery(w http.ResponseWriter, r *http.Request)

PostSpotsQuery godoc @Summary Загрузка сохраненных спотов. @Description Динамический запрос на загрузку сохраненных данных. Логические операторы: eq ==, ne !=, gt >, lt <, ge >=, le <=, in in, isnil is nil. @ID routes-query-spots @Tags Споты @Param body body models.SpotsQuery true "Запрос" @Accept json @Produce json @Success 200 {object} models.CommonResponse @Router /api/v1/spot/query [post]

func PutAddMPlan

func PutAddMPlan(w http.ResponseWriter, r *http.Request)

PutAddMPlan godoc @Summary Создает новый медиаплан. @Description Создает новый медиаплан. @ID routes-add-mediaplans @Tags Медиапланы @Param body body models.SwaggerAddMPlanRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/mediaplan [put]

func PutAddSpot

func PutAddSpot(w http.ResponseWriter, r *http.Request)

PutAddSpot godoc @Summary Постановка спота в блок. @Description Постановка спота в блок. @ID routes-add-spot @Tags Споты @Param body body models.SwaggerAddSpotRequest true "Запрос" @Accept json @Produce json @Success 200 {object} models.StreamResponse @Router /api/v1/spot [put]

Types

type MqInfo

type MqInfo struct {
	Name      string `json:"name"`
	Messages  int    `json:"messages"`
	Consumers int    `json:"consumers"`
}

type Status

type Status struct {
	Status  string `json:"status"`
	Message string `json:"message"`
	Code    int    `json:"code"`
}

Jump to

Keyboard shortcuts

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