123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- import ajax from "@/utils/request.js";
- /**
- * 广告
- * @returns {AxjxPromise}
- */
- export function advertisementApi(data) {
- return ajax({
- url: "/kuyun_eye_ad/cbd_public/perform",
- method: "get",
- data,
- });
- }
- /**
- * 流入流出
- * @returns {AxjxPromise}
- */
- export function inOutApi(data) {
- return ajax({
- url: "/api/recent_inout",
- method: "get",
- data,
- });
- }
- /**
- * epg
- * @returns {AxjxPromise}
- */
- export function epgApi(data) {
- return ajax({
- url: "/api/recent_epgs",
- method: "get",
- data,
- });
- }
- /**
- * 直播实时 分
- * @returns {AxjxPromise}
- */
- export function liveRealDataMinApi(data) {
- return ajax({
- url: "/api/sec_ratings",
- method: "get",
- data,
- });
- }
- /**
- * 直播实时数据
- * @returns {AxjxPromise}
- */
- export function liveRealDataApi(data) {
- return ajax({
- url: "/api/min_ratings",
- method: "get",
- data,
- });
- }
- /**
- * 直播实时数据
- * @returns {AxjxPromise}
- */
- export function liveDataApi(data) {
- return ajax({
- url: "/api/tvlb",
- method: "get",
- data,
- });
- }
- /**
- * 高光数据
- * @returns {AxjxPromise}
- */
- export function heightlightDataApi(data) {
- return ajax({
- url: "/api/hl/calendar",
- method: "get",
- data,
- });
- }
- /**
- * 高光时刻
- * @returns {AxjxPromise}
- */
- export function heightlightApi(data) {
- return ajax({
- url: "/api/hl/list-milestone",
- method: "get",
- data,
- });
- }
- /**
- * 节目
- * @returns {AxjxPromise}
- */
- export function list(data) {
- return ajax({
- url: "/api/proepglb",
- method: "get",
- data,
- });
- }
- /**
- * 节目导出
- * @returns {AxjxPromise}
- */
- export function listcsv(data) {
- return ajax({
- url: "/api/proepglb/csv",
- method: "get",
- downCsv: true,
- data,
- });
- }
- /**
- * 频道
- * @returns {AxjxPromise}
- */
- export function channel(data) {
- return ajax({
- url: "/api/protvlb",
- method: "get",
- data,
- });
- }
- /**
- * 频道导出
- * @returns {AxjxPromise}
- */
- export function channelcsv(data) {
- return ajax({
- url: "/api/protvlb/csv",
- method: "get",
- downCsv: true,
- data,
- });
- }
- /**
- * 获取精品节目列表
- * @props {}
- * @returns {AxjxPromise}
- */
- export function epgList() {
- return ajax({
- urlType: "url2",
- url: "/program",
- method: "get",
- });
- }
- /**
- * 获取精品节目详情
- * @props {}
- * @returns {AxjxPromise}
- */
- export function epgDetail(data) {
- return ajax({
- urlType: "url2",
- url: "/epg-detail",
- method: "get",
- target: data.target,
- data: { epgId: data.epgId },
- });
- }
- /**
- * 获取精品节目指标
- * @props {}
- * @returns {AxjxPromise}
- */
- export function epgResult(data) {
- return ajax({
- urlType: "url2",
- url: "/epg-result",
- method: "get",
- data,
- });
- }
- /**
- * 自由接口
- * @props {url, data}
- * @return {AxjxPromise}
- */
- export function defaultAjax(props) {
- return ajax({
- urlType: "url3",
- url: props.url,
- method: "get",
- notLoad: props.notLoad,
- target: props.target,
- data: props.data,
- });
- }
- /**
- * 频率列表
- * @props {}
- * @return {AxjxPromise}
- */
- export function frequencyList() {
- return ajax({
- urlType: "url2",
- url: "/broadcast/dict",
- method: "get",
- });
- }
- /**
- * 频率查询
- * @props {}
- * @return {AxjxPromise}
- */
- export function PLList(data) {
- return ajax({
- urlType: "url2",
- url: "/broadcast/list",
- method: "get",
- data,
- });
- }
- // 全国接口
- /**
- * 频道全天节目
- * 表格查询
- * @props {}
- * @return {AxjxPromise}
- */
- export function allDayEpg(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/broadcast/list",
- method: "get",
- data,
- });
- }
- // 重叠度
- /**
- * 节目查询
- * 图表查询
- * @props {}
- * @return {AxjxPromise}
- */
- export function overlapSearchTitle(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/search_suggest?" + data,
- method: "GET",
- });
- }
- /**
- * 节目重叠度
- * 图表查询
- * @props {}
- * @return {AxjxPromise}
- */
- export function overlap(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/ProUserOverlapAction",
- method: "GET",
- data,
- });
- }
- /**
- * 广告频道列表
- * @props {}
- * @return {AxjxPromise}
- */
- export function adChannelList() {
- return ajax({
- urlType: "adAPI",
- url: "/ad/channel",
- method: "GET",
- });
- }
- /**
- * 投放分析
- * @props {string} channelId
- * @props {string} start
- * @props {string} end
- * @return {AxjxPromise}
- */
- export function launchList(data) {
- return ajax({
- urlType: "adAPI",
- url: "/ad/day",
- method: "POST",
- data,
- });
- }
- /**
- * 时段分析
- * @props {string} channelId
- * @props {string} start
- * @props {string} end
- * @return {AxjxPromise}
- */
- export function trendList(data) {
- return ajax({
- urlType: "adAPI",
- url: "/ad/hour",
- method: "POST",
- data,
- });
- }
- /**
- * 行业占比
- * @props {string} channelId
- * @props {string} start
- * @props {string} end
- * @return {AxjxPromise}
- */
- export function proportionList(data){
- return ajax({
- urlType: "adAPI",
- url: "/ad/ratio",
- method: "POST",
- data,
- });
- }
- /**
- * 客户投放详情
- * @props {string} channelId
- * @props {string} start
- * @props {string} end
- * @return {AxjxPromise}
- */
- export function customerList(data){
- return ajax({
- urlType: "adAPI",
- url: "/ad/detail",
- method: "POST",
- data,
- });
- }
- /**
- * 优势客户
- * @props {string} channelId
- * @props {string} start
- * @props {string} end
- * @return {AxjxPromise}
- */
- export function advantageousList(data){
- return ajax({
- urlType: "adAPI",
- url: "/ad/youshi",
- method: "POST",
- data,
- });
- }
- /**
- * 潜在客户
- * @props {string} channelId
- * @props {string} start
- * @props {string} end
- * @return {AxjxPromise}
- */
- export function potentialList(data){
- return ajax({
- urlType: "adAPI",
- url: "/ad/qianzai",
- method: "POST",
- data,
- });
- }
- /**
- * 饱和度
- * @props {string} channelId
- * @props {string} start
- * @props {string} end
- * @return {AxjxPromise}
- */
- export function saturationList(data){
- return ajax({
- urlType: "adAPI",
- url: "/ad/saturation",
- method: "POST",
- data,
- });
- }
|