Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporate-culture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporate-culture-qd
Commits
c46ff158
Commit
c46ff158
authored
Mar 19, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 21096】 wip: 加入接口常量等
parent
9ecaf19a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
0 deletions
+56
-0
index.ts
src/api/article/index.ts
+14
-0
enums.ts
src/constants/enums.ts
+12
-0
options.ts
src/constants/options.ts
+30
-0
No files found.
src/api/article/index.ts
View file @
c46ff158
...
@@ -20,6 +20,7 @@ import type {
...
@@ -20,6 +20,7 @@ import type {
UpdateArticleRecommendAndSortDto
,
UpdateArticleRecommendAndSortDto
,
}
from
'./types'
}
from
'./types'
import
type
{
BackendServicePageResult
,
PageSearchParams
}
from
'@/utils/request/types'
import
type
{
BackendServicePageResult
,
PageSearchParams
}
from
'@/utils/request/types'
import
{
SpecificVideoRewardEnum
}
from
'@/constants'
// 文章相关的接口(帖子 视频 实践等)
// 文章相关的接口(帖子 视频 实践等)
...
@@ -355,3 +356,16 @@ export const getCommentDetail = (id: number) => {
...
@@ -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
,
},
})
}
src/constants/enums.ts
View file @
c46ff158
...
@@ -151,3 +151,15 @@ export enum GoodsDistributionTypeEnum {
...
@@ -151,3 +151,15 @@ export enum GoodsDistributionTypeEnum {
// 竞拍
// 竞拍
AUCTION
=
'auction'
,
AUCTION
=
'auction'
,
}
}
// 特定视频奖励枚举
export
enum
SpecificVideoRewardEnum
{
// QA碎片
QA_CHIP
=
'QA_CHIP'
,
// 初心碎片
ORIGINAL_CHIP
=
'ORIGINAL_CHIP'
,
// 本分&包容碎片
MODEST_CHIP
=
'MODEST_CHIP'
,
// 创新碎片
INNOVATION_CHIP
=
'INNOVATION_CHIP'
,
}
src/constants/options.ts
View file @
c46ff158
...
@@ -6,6 +6,7 @@ import {
...
@@ -6,6 +6,7 @@ import {
UsageStatusEnum
,
UsageStatusEnum
,
AuctionStatusEnum
,
AuctionStatusEnum
,
GoodsDistributionTypeEnum
,
GoodsDistributionTypeEnum
,
SpecificVideoRewardEnum
,
}
from
'./enums'
}
from
'./enums'
// 地区列表
// 地区列表
...
@@ -233,3 +234,32 @@ export const goodsDistributionTypeListOptions: {
...
@@ -233,3 +234,32 @@ export const goodsDistributionTypeListOptions: {
value
:
GoodsDistributionTypeEnum
.
AUCTION
,
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
:
'从诗词歌赋聊到人生哲学'
,
},
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment