You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.3 KiB
63 lines
1.3 KiB
/*
|
|
* @Author: 1036896656@qq.com 1036896656@qq.com
|
|
* @Date: 2023-08-04 11:13:12
|
|
* @LastEditors: 1036896656@qq.com 1036896656@qq.com
|
|
* @LastEditTime: 2023-10-07 15:01:15
|
|
* @FilePath: \agile-portal-ui\src\api\homeView.js
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
|
|
import request from '@/utils/request'
|
|
|
|
// 首页banner
|
|
export function listBanner(query) {
|
|
return request({
|
|
url: '/content/banner',
|
|
method: 'get',
|
|
})
|
|
}
|
|
// 应用场景
|
|
export function scenesList(query) {
|
|
return request({
|
|
url: '/content/scenesList',
|
|
method: 'get',
|
|
})
|
|
}
|
|
//新闻
|
|
export function listNews(query) {
|
|
return request({
|
|
url: '/content/list',
|
|
method: 'get',
|
|
})
|
|
}
|
|
//新闻详情
|
|
export function contentInfo(id) {
|
|
return request({
|
|
url: '/content/contentInfo?contentId=' + id,
|
|
method: 'get',
|
|
})
|
|
}
|
|
//api列表
|
|
export function listApi(query) {
|
|
return request({
|
|
url: '/api/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
// 产品介绍
|
|
export function dataProduct() {
|
|
return request({
|
|
url: '/content/dataProduct',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
// SDK下载
|
|
export function sdkDownload() {
|
|
return request({
|
|
url: '/content/sdkDownload',
|
|
method: 'get',
|
|
responseType: 'blob',
|
|
})
|
|
} |