170 lines
2.9 KiB
JavaScript
170 lines
2.9 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
export function playletList(params) {
|
|
return request({
|
|
url: '/api/web/playlet/list',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function playletAdd(data) {
|
|
return request({
|
|
url: '/api/web/playlet/add',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletUpdate(data) {
|
|
return request({
|
|
url: '/api/web/playlet/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletDel(data) {
|
|
return request({
|
|
url: '/api/web/playlet/del',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletStatusSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/status/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletRecommendSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/recommend/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletFeaturedSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/featured/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletOperateTypeSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/operate-type/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletThemeSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/theme/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletCategorySet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/category/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletTagSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/tag/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletWatermarkReset(data) {
|
|
return request({
|
|
url: '/api/web/playlet/watermark/reset',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletVirtualLikeSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/like/virtual/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletBannerSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/banner/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletChapterList(params) {
|
|
return request({
|
|
url: '/api/web/playlet/chapter/list',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function playletChapterAdd(data) {
|
|
return request({
|
|
url: '/api/web/playlet/chapter/add',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletChapterUpdate(data) {
|
|
return request({
|
|
url: '/api/web/playlet/chapter/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletChapterStatusSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/chapter/status/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletChapterPayTypeSet(data) {
|
|
return request({
|
|
url: '/api/web/playlet/chapter/pay-type/set',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletChapterDel(data) {
|
|
return request({
|
|
url: '/api/web/playlet/chapter/del',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function playletChapterSync(data) {
|
|
return request({
|
|
url: '/api/web/playlet/chapter/sync',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|