finance-pay-admin/pc/api/news.ts

58 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-11-08 18:02:55 +08:00
/**
* @description
* @return { Promise }
*/
export function getArticleCate() {
return $request.get({ url: '/article/cate' })
}
/**
* @description
* @return { Promise }
*/
export function getArticleList(params) {
return $request.get({ url: '/article/lists', params })
}
/**
* @description
* @return { Promise }
*/
export function getArticleCenter() {
return $request.get({ url: '/pc/infoCenter' })
}
/**
* @description
* @return { Promise }
*/
export function getArticleDetail(params) {
return $request.get({ url: '/pc/articleDetail', params })
}
/**
* @description
* @param { number } id
* @return { Promise }
*/
export function addCollect(params) {
return $request.post({ url: '/article/addCollect', params })
}
/**
* @description
* @param { number } id
* @return { Promise }
*/
export function cancelCollect(params) {
return $request.post({ url: '/article/cancelCollect', params })
}
/**
* @description
* @return { Promise }
*/
export function getCollect(params) {
return $request.get({ url: '/article/collect', params })
}