Files
sist_web/src/api/index.js
clay fa8bc05879 11
2022-01-16 22:53:34 +08:00

87 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @author: Clay
* @date: 2022/1/14 13:26
* @descriptionindex
* @email: clay@hchyun.com
*/
import request from '@/utils/request'
// 获取统计数据
export function getConfig(configKey) {
return request({
url: '/web/config/'+configKey,
method: 'get',
})
}
// 获取所有导航
export function getNavigation(data) {
return request({
url: '/web/getnavall',
method: 'post',
data:data
})
}
// 获取节点信息(通用接口)
export function getNode(data) {
return request({
url: '/web/node',
method: 'post',
data:data
})
}
// 获取文章列表
export function getArticleList(data) {
return request({
url: '/web/articlelist',
method: 'post',
data:data
})
}
// 获取面包屑
export function crumbs(id) {
return request({
url: '/web/crumbs',
method: 'post',
data:{
id:id
}
})
}
// 获取banner图
export function banner(type) {
return request({
url: '/web/banner',
method: 'post',
data:{
type:type
}
})
}
// 获取文章详情
export function article(id) {
return request({
url: '/web/article',
method: 'post',
data:{
id:id
}
})
}
// 获取文章详情
export function info(id) {
return request({
url: '/web/info',
method: 'post',
data:{
id:id
}
})
}