test_lgq/web/api/article.ts

27 lines
510 B
TypeScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
/**
*
*/
export function getArticleList(params: Record<string, any>) {
return request.get('article/article', params)
}
/**
*
*/
export function getArticleAll(params: Record<string, any>) {
return request.get('article/article/all', params)
}
/**
*
*/
export function getArticleDetail(id: number) {
return request.get(`article/article/${id}`)
}
/**
*
*/
export function getArticleCategory() {
return request.get('article/category')
}