1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import { useMyRequest } from '~/composables/useFetchRequest'
- enum Api {
- VideoOrBlogsList = '/client/content/list',
- VideoOrBlogsDetail = '/client/content/detail',
- BlogCategoryList = '/client/content/category/content',
- }
- export async function getBlogsListApi(params?: any) {
- return await useMyRequest().get(Api.VideoOrBlogsList, params)
- }
- export async function getBlogsDetailApi(params?: any) {
- return await useMyRequest().get(Api.VideoOrBlogsDetail, params)
- }
- export async function getReleaseBlogApi(params?: any) {
- return await useMyRequest().get(Api.VideoOrBlogsList, params)
- }
- export async function getBlogCategoryListApi(params?: any) {
- return await useMyRequest().get(Api.BlogCategoryList, params)
- }
|