更新:1.课程详情增加骨架屏;2.图书首页和图书详情增加骨架屏;
This commit is contained in:
@@ -3,8 +3,7 @@ import { createRequestClient } from '../request'
|
||||
import { SERVICE_MAP } from '../config'
|
||||
import type { IApiResponse } from '../types'
|
||||
import type { IVideoCheckResponse } from '@/types/video'
|
||||
|
||||
const client = createRequestClient({ baseURL: SERVICE_MAP.MAIN })
|
||||
import { skeletonClient } from '@/api/clients'
|
||||
|
||||
/**
|
||||
* 视频相关API
|
||||
@@ -18,7 +17,7 @@ export const videoApi = {
|
||||
checkVideo(data: {
|
||||
id: number
|
||||
}) {
|
||||
return client.request<IVideoCheckResponse>({
|
||||
return skeletonClient.request<IVideoCheckResponse>({
|
||||
url: 'sociology/course/checkVideo',
|
||||
method: 'POST',
|
||||
data
|
||||
@@ -34,7 +33,7 @@ export const videoApi = {
|
||||
videoId: number
|
||||
position: number
|
||||
}) {
|
||||
return client.request<IApiResponse>({
|
||||
return skeletonClient.request<IApiResponse>({
|
||||
url: 'sociology/course/saveCoursePosition',
|
||||
method: 'POST',
|
||||
data
|
||||
@@ -51,7 +50,7 @@ export const videoApi = {
|
||||
videoId: number
|
||||
sort: number
|
||||
}) {
|
||||
return client.request<IApiResponse>({
|
||||
return skeletonClient.request<IApiResponse>({
|
||||
url: 'medical/course/addErrorCourse',
|
||||
method: 'POST',
|
||||
data
|
||||
|
||||
Reference in New Issue
Block a user