Initial commit
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
import ajax from '../utils/request';
|
||||
|
||||
const shortVideoRecommendApi = {
|
||||
// 付费引导配置
|
||||
getPaymentGuideList(params) {
|
||||
return ajax({
|
||||
url: '/payment-guide/list',
|
||||
type: 'get',
|
||||
params,
|
||||
});
|
||||
},
|
||||
addPaymentGuide(params) {
|
||||
return ajax({
|
||||
url: '/payment-guide/add',
|
||||
type: 'post',
|
||||
params,
|
||||
});
|
||||
},
|
||||
editPaymentGuide(params) {
|
||||
return ajax({
|
||||
url: '/payment-guide/edit',
|
||||
type: 'post',
|
||||
params,
|
||||
});
|
||||
},
|
||||
deletePaymentGuide(params) {
|
||||
// id 走 query(params),request 对非 get 会把 params 放进 data
|
||||
return ajax({
|
||||
url: `/payment-guide/delete?id=${encodeURIComponent(params.id)}`,
|
||||
type: 'delete',
|
||||
});
|
||||
},
|
||||
|
||||
// 评论 Banner 配置
|
||||
getCommentBannerList(params) {
|
||||
return ajax({
|
||||
url: '/banner/list',
|
||||
type: 'get',
|
||||
params: {
|
||||
scene: 'COMMENT_TOP',
|
||||
...params,
|
||||
},
|
||||
});
|
||||
},
|
||||
addCommentBanner(params) {
|
||||
return ajax({
|
||||
url: '/banner/add',
|
||||
type: 'post',
|
||||
params,
|
||||
});
|
||||
},
|
||||
editCommentBanner(params) {
|
||||
return ajax({
|
||||
url: '/banner/edit',
|
||||
type: 'post',
|
||||
params,
|
||||
});
|
||||
},
|
||||
deleteCommentBanner(params) {
|
||||
return ajax({
|
||||
url: '/banner/delete',
|
||||
type: 'delete',
|
||||
params,
|
||||
});
|
||||
},
|
||||
|
||||
// VIP 卡片实验
|
||||
getVipCardExperimentCurrent() {
|
||||
return ajax({
|
||||
url: '/vip-card-experiment/current',
|
||||
type: 'get',
|
||||
});
|
||||
},
|
||||
publishVipCardExperiment(params) {
|
||||
return ajax({
|
||||
url: '/vip-card-experiment/publish',
|
||||
type: 'post',
|
||||
params,
|
||||
});
|
||||
},
|
||||
disableVipCardExperiment(params) {
|
||||
return ajax({
|
||||
url: '/vip-card-experiment/disable',
|
||||
type: 'post',
|
||||
params,
|
||||
});
|
||||
},
|
||||
getVipCardExperimentStatistics(params) {
|
||||
return ajax({
|
||||
url: '/vip-card-experiment/statistics',
|
||||
type: 'get',
|
||||
params,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
export default shortVideoRecommendApi;
|
||||
Reference in New Issue
Block a user