ptSend/view/src/api/Video.js
2023-07-13 09:44:47 +08:00

34 lines
828 B
JavaScript

import {base} from "./base";
export async function getVideoInfo(id) {
return await base.get("/videoInfo/getVideoInfo", {
params: {
id
}
})
}
export async function searchVideo(name) {
return await base.get("/videoInfo/searchVideo", {
params: {
name
}
})
}
export async function getImdbName(url) {
return await base.get("/videoInfo/getImdbName", {
params: {
url
}
})
}
export async function addSubscribe({name, rename, desc, year, season, ep, url, img, subtitle, time,skip,sid,count}) {
return await base.post("/videoInfo/addSubscribe", {name, rename, desc, year, season, ep, url, img, subtitle, time,skip,sid,count})
}
export async function getSubscribe(){
return await base.get("/videoInfo/getSubscribe")
}