forked from wangjiadong/comp
parent
07fbbd9995
commit
7e88ee515e
5 changed files with 123 additions and 34 deletions
@ -0,0 +1,36 @@ |
||||
import { defHttp } from '/@/utils/http/axios'; |
||||
|
||||
enum Api { |
||||
DEMO_NAV_LIST = '/cms/front/getColumnList', |
||||
DEMO_ARTICLE_LIST = 'cms/front/getArticleListByColumn' |
||||
} |
||||
|
||||
/** |
||||
* @description: 获取导航 |
||||
*/ |
||||
|
||||
export const demoNavListApi = () => |
||||
defHttp.get({ |
||||
url: Api.DEMO_NAV_LIST, |
||||
}); |
||||
|
||||
/** |
||||
* 获取文章列表 |
||||
* @returns
|
||||
*/ |
||||
export const demoArticleListApi = (params:any) => |
||||
defHttp.get({ |
||||
url: Api.DEMO_ARTICLE_LIST, |
||||
params |
||||
}); |
||||
/** |
||||
* 获取文章 |
||||
* @returns
|
||||
*/ |
||||
export const demoArticleApi = (id:string) => |
||||
defHttp.get({ |
||||
url: Api.DEMO_ARTICLE_LIST, |
||||
params:{ id } |
||||
}); |
||||
|
||||
|
Loading…
Reference in new issue