90 lines
1.6 KiB
JavaScript
90 lines
1.6 KiB
JavaScript
import fetch, { httpUrl } from '../forge/Information/fetch';
|
|
|
|
export { httpUrl }
|
|
|
|
export function getNewsHotList(id,params){
|
|
return fetch({
|
|
url:`/cms/doc/open/zone/${id}/hotDocList`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function getDocList(id, params){
|
|
return fetch({
|
|
url:`/cms/doc/open/zone/${id}/docOverviewList`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 获取文章列表
|
|
export function getSubDocList(id,params){
|
|
return fetch({
|
|
url:`/cms/doc/open/dir/${id}/docList`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function getProjectsLists(id,params){
|
|
return fetch({
|
|
url:`/zone/open/${id}/project/list`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取资源列表
|
|
* @param {*} params
|
|
* @returns
|
|
*/
|
|
export function getSourceList(params){
|
|
return fetch({
|
|
url:`/zone/open/${params.id}/resource/list`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取资源领域列表
|
|
* @param {*} id
|
|
* @returns
|
|
*/
|
|
export function getSourceZoneList(id){
|
|
return fetch({
|
|
url:`/zone/open/${id}/resourceDomain/list`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
export function gethomePageDocList(id) {
|
|
return fetch({
|
|
url: `/cms/doc/open/zone/${id}/homePageDocList`,
|
|
method: 'get',
|
|
});
|
|
}
|
|
|
|
export function getNewsDetail(id){
|
|
return fetch({
|
|
url:`/cms/doc/open/${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
export function getSourceDetail(id){
|
|
return fetch({
|
|
url:`/zone/open/resource/detail/${id}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export function getMainInfos(deptId, params) {
|
|
return fetch({
|
|
url: `/zone/open/zoneKey/${deptId}`,
|
|
method: 'get',
|
|
params
|
|
});
|
|
} |