DSDSWeb/src/api/home.js

65 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-07-11 18:02:47 +08:00
import request from '@/utils/request'
// 发布动态配置 检索
export function pubDynamicSearch(data) {
return request({
url: '/Index/search',
method: 'post',
data
})
}
// RelatedLinks 检索
export function findRelatedLinks(data) {
return request({
url: '/Index/findRelatedLinks',
method: 'post',
data
})
}
// 首页轮播图查询信息
export function findMovies(data) {
return request({
url: '/Index/findMovies',
method: 'post',
data
})
}
// 首页查询统计信息
export function dataStatistics(data) {
return request({
url: '/Index/dataStatistics',
method: 'post',
data
})
}
// 访问信息入库
export function saveVisits(data) {
return request({
url: '/Index/saveVisits',
method: 'post',
data
})
}
// 所有航次
export function getVoyage() {
return request({
url: '/remit/voyage/name?type=' + '',
method: 'get',
type: 'application/x-www-form-urlencoded'
})
}
// 某个航次的轨迹
export function getVoyageLine(voyageName) {
return request({
url: '/remit/voyage/tra?voyageName=' + voyageName,
method: 'get',
type: 'application/x-www-form-urlencoded'
})
}