Commit c46ff158 by lijiabin

【需求 21096】 wip: 加入接口常量等

parent 9ecaf19a
......@@ -20,6 +20,7 @@ import type {
UpdateArticleRecommendAndSortDto,
} from './types'
import type { BackendServicePageResult, PageSearchParams } from '@/utils/request/types'
import { SpecificVideoRewardEnum } from '@/constants'
// 文章相关的接口(帖子 视频 实践等)
......@@ -355,3 +356,16 @@ export const getCommentDetail = (id: number) => {
},
})
}
/**
* 获取特定视频观看奖励
*/
export const getSpecificVideoWatchReward = (pageKey: SpecificVideoRewardEnum) => {
return service.request<boolean>({
url: `/api/yaCulture/bossVideo/view`,
method: 'POST',
data: {
pageKey,
},
})
}
......@@ -151,3 +151,15 @@ export enum GoodsDistributionTypeEnum {
// 竞拍
AUCTION = 'auction',
}
// 特定视频奖励枚举
export enum SpecificVideoRewardEnum {
// QA碎片
QA_CHIP = 'QA_CHIP',
// 初心碎片
ORIGINAL_CHIP = 'ORIGINAL_CHIP',
// 本分&包容碎片
MODEST_CHIP = 'MODEST_CHIP',
// 创新碎片
INNOVATION_CHIP = 'INNOVATION_CHIP',
}
......@@ -6,6 +6,7 @@ import {
UsageStatusEnum,
AuctionStatusEnum,
GoodsDistributionTypeEnum,
SpecificVideoRewardEnum,
} from './enums'
// 地区列表
......@@ -233,3 +234,32 @@ export const goodsDistributionTypeListOptions: {
value: GoodsDistributionTypeEnum.AUCTION,
},
]
// 特定视频奖励列表
export const specificVideoRewardListOptions: {
label: string
value: SpecificVideoRewardEnum
title: string
}[] = [
{
label: 'QA碎片',
value: SpecificVideoRewardEnum.QA_CHIP,
// 匹配的标题
title: '虎虎实锤重磅来袭',
},
{
label: '初心碎片',
value: SpecificVideoRewardEnum.ORIGINAL_CHIP,
title: '跌宕起伏的创业前传',
},
{
label: '本分&包容碎片',
value: SpecificVideoRewardEnum.MODEST_CHIP,
title: '老板的MBTI终于暴露了',
},
{
label: '创新碎片',
value: SpecificVideoRewardEnum.INNOVATION_CHIP,
title: '从诗词歌赋聊到人生哲学',
},
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment