Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-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
王立鹏
corporateCulture-qd
Commits
50ca5eb9
Commit
50ca5eb9
authored
Feb 06, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 20331】 chore: 加入类型 接口 等
parent
f2fa2383
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
228 additions
and
13 deletions
+228
-13
index.ts
src/api/article/index.ts
+4
-3
types.ts
src/api/article/types.ts
+11
-0
index.ts
src/api/backend/activity/index.ts
+65
-0
types.ts
src/api/backend/activity/types.ts
+52
-0
index.ts
src/api/backend/case/index.ts
+33
-0
types.ts
src/api/backend/case/types.ts
+26
-8
index.ts
src/api/backend/index.ts
+2
-1
types.ts
src/api/case/types.ts
+1
-1
index.ts
src/api/index.ts
+2
-0
index.ts
src/api/user/index.ts
+13
-0
types.ts
src/api/user/types.ts
+19
-0
No files found.
src/api/article/index.ts
View file @
50ca5eb9
...
...
@@ -17,6 +17,7 @@ import type {
SearchMoreVideoParams
,
SearchMoreVideoItemDto
,
SecondCommentItemDto
,
UpdateArticleRecommendAndSortDto
,
}
from
'./types'
import
type
{
BackendServicePageResult
,
PageSearchParams
}
from
'@/utils/request/types'
...
...
@@ -207,11 +208,11 @@ export const addOrCancelCommentLike = (commentId: number | string) => {
/**
* 修改文章的是否推荐/置顶字段
*/
export
const
updateArticleRecommend
=
(
articleId
:
number
)
=>
{
export
const
updateArticleRecommend
AndSort
=
(
data
:
UpdateArticleRecommendAndSortDto
)
=>
{
return
service
.
request
({
url
:
`/api/cultureArticle/isRecommend
?articleId=
${
articleId
}
`
,
url
:
`/api/cultureArticle/isRecommend`
,
method
:
'POST'
,
data
:
{}
,
data
,
})
}
...
...
src/api/article/types.ts
View file @
50ca5eb9
...
...
@@ -15,6 +15,7 @@ export interface ArticleSearchParams extends PageSearchParams {
sortLogic
?:
number
title
?:
string
questionFocus
?:
number
status
?:
BooleanFlag
}
/**
...
...
@@ -202,6 +203,7 @@ export interface ArticleItemDto {
videoLocation
:
VideoPositionEnum
articleVideoUrl
:
string
region
:
string
recommendSort
:
number
}
/**
...
...
@@ -434,3 +436,12 @@ export interface SearchMoreVideoItemDto {
* 获取问吧二级评论的返回参数
*/
export
type
SecondCommentItemDto
=
CommentItemDto
/**
* 修改文章推荐和排序
*/
export
interface
UpdateArticleRecommendAndSortDto
{
recommendSort
:
number
isRecommend
:
BooleanFlag
articleId
:
number
}
src/api/backend/activity/index.ts
0 → 100644
View file @
50ca5eb9
import
service
from
'@/utils/request/index'
import
type
{
BackendAuctionListSearchParams
,
BackendAuctionListItemDto
,
BackendAddOrUpdateAuctionItemDto
,
BackendAuctionRecordItemDto
,
}
from
'./types'
import
type
{
BackendServicePageResult
}
from
'@/utils/request/types'
import
{
BooleanFlag
}
from
'@/constants'
// 后台管理限时竞拍相关接口
/**
* 限时竞拍后台列表
*/
export
const
getBackendAuctionList
=
(
data
:
BackendAuctionListSearchParams
)
=>
{
return
service
.
request
<
BackendServicePageResult
<
BackendAuctionListItemDto
>>
({
url
:
'/cultureAuctionItems/listByPage'
,
method
:
'POST'
,
data
,
})
}
/**
* 新增或者编辑竞拍物品
*/
export
const
addOrUpdateAuctionItem
=
(
data
:
BackendAddOrUpdateAuctionItemDto
)
=>
{
return
service
.
request
({
url
:
'/cultureAuctionItems/addOrUpdateAuctionItem'
,
method
:
'POST'
,
data
,
})
}
/**
* 删除竞拍物品数据
*/
export
const
deleteAuction
=
(
idList
:
number
[])
=>
{
return
service
.
request
({
url
:
'/cultureAuctionItems/deleteAuction'
,
method
:
'POST'
,
data
:
{
idList
},
})
}
/**
* 批量修改展示竞拍
*/
export
const
batchUpdateShowAuction
=
(
data
:
{
idList
:
number
[];
isDisplay
:
BooleanFlag
})
=>
{
return
service
.
request
({
url
:
'/cultureAuctionItems/changeAuctionDisplay'
,
method
:
'POST'
,
data
,
})
}
/**
* 获取竞拍记录
*/
export
const
getAuctionRecord
=
(
data
:
BackendAuctionRecordItemDto
)
=>
{
return
service
.
request
<
BackendServicePageResult
<
BackendAuctionRecordItemDto
>>
({
url
:
`/cultureAuctionItems/listBidRecord`
,
method
:
'POST'
,
data
,
})
}
src/api/backend/activity/types.ts
0 → 100644
View file @
50ca5eb9
import
type
{
PageSearchParams
}
from
'@/utils/request/types'
import
{
BooleanFlag
,
AuctionStatusEnum
}
from
'@/constants'
export
interface
BackendAuctionListSearchParams
extends
PageSearchParams
{
name
?:
string
}
export
interface
BackendAuctionListItemDto
extends
PageSearchParams
{
bidLimit
:
number
canBid
:
number
cannotBidReason
:
string
createAt
:
number
createUserName
:
string
currentBidderId
:
number
currentPrice
:
number
description
:
string
endTime
:
number
id
:
number
imageUrl
:
string
isDisplay
:
number
minIncrement
:
number
name
:
string
quantity
:
number
specification
:
string
startTime
:
number
startingPrice
:
number
status
:
AuctionStatusEnum
statusDesc
:
string
totalBids
:
number
type
:
number
typeDesc
:
string
userBidCount
:
number
}
export
interface
BackendAddOrUpdateAuctionItemDto
{
id
?:
number
name
:
string
quantity
:
number
specification
:
string
description
:
string
startingPrice
:
number
minIncrement
:
number
bidLimit
:
number
startTime
:
string
endTime
:
string
isDisplay
:
BooleanFlag
imageUrl
:
string
}
export
interface
BackendAuctionRecordItemDto
extends
PageSearchParams
{
id
:
number
}
src/api/backend/case/index.ts
View file @
50ca5eb9
...
...
@@ -4,6 +4,7 @@ import type {
AuditCaseDto
,
BackendCaseListItemDto
,
CaseListSearchParams
,
BackendEditCaseDto
,
}
from
'./types'
import
type
{
BackendServicePageResult
}
from
'@/utils/request/types'
// 后台管理案例库相关接口
...
...
@@ -51,3 +52,35 @@ export const changeUsageStatus = (data: ChangeUsageStatusDto) => {
data
,
})
}
/**
* 导入excel的接口
*/
export
const
importCaseExcel
=
(
file
:
File
,
onProgress
?:
(
progress
:
number
)
=>
void
)
=>
{
const
formData
=
new
FormData
()
formData
.
append
(
'file'
,
file
)
return
service
.
request
<
BackendCaseListItemDto
[]
>
({
url
:
'/api/cultureCase/import'
,
method
:
'POST'
,
data
:
formData
,
onUploadProgress
:
(
progressEvent
)
=>
{
const
progress
=
Math
.
round
((
progressEvent
.
loaded
*
100
)
/
(
progressEvent
.
total
||
1
))
if
(
onProgress
)
{
onProgress
(
progress
)
}
},
})
}
/**
* 后台编辑案例库
*/
export
const
backendEditCase
=
(
data
:
BackendEditCaseDto
)
=>
{
return
service
.
request
({
url
:
'/api/cultureCase/addOrUpdateCase'
,
method
:
'POST'
,
data
,
})
}
src/api/backend/case/types.ts
View file @
50ca5eb9
import
type
{
TagItemDto
}
from
'@/api/case/types'
import
{
UsageStatusEnum
,
AuditStatusEnum
}
from
'@/constants'
import
type
{
PageSearchParams
}
from
'@/utils/request/types'
...
...
@@ -7,21 +8,25 @@ export interface CaseListSearchParams extends PageSearchParams {
title
?:
string
}
type
TagItem
=
{
id
:
number
title
:
string
}
export
interface
BackendCaseListItemDto
{
caseType
:
string
content
:
string
createTime
:
number
createUser
:
number
cultureKeywordMain
:
string
cultureKeywordSecond
:
string
[]
cultureRelation
:
number
cultureKeywordMain
:
TagItem
[]
cultureKeywordSecond
:
TagItem
[]
cultureRelation
:
string
dataSources
:
number
depIdList
:
string
[]
depNameList
:
string
[]
deptId
:
string
deptName
:
string
id
:
number
integrity
:
number
integrity
:
string
isAudit
:
number
isDelete
:
number
isDispose
:
number
...
...
@@ -29,18 +34,31 @@ export interface BackendCaseListItemDto {
mainScene
:
string
minorScene
:
string
number
:
string
sceneKeywordMain
:
string
sceneKeywordSecond
:
string
[]
sceneKeywordMain
:
TagItem
[]
sceneKeywordSecond
:
TagItem
[]
sourceProject
:
string
sourceTime
:
number
sourceType
:
string
sourceUser
:
number
title
:
string
yearKeywordMain
:
string
yearKeywordSecond
:
string
[]
yearKeywordMain
:
TagItem
[]
yearKeywordSecond
:
TagItem
[]
sourceUserName
:
string
sourceUserWorkNo
:
string
}
export
interface
BackendEditCaseDto
{
id
:
number
sourceProject
:
string
sourceType
:
string
caseType
:
string
integrity
:
string
cultureRelation
:
string
title
:
string
content
:
string
deptId
:
string
deptName
:
string
tagRelationDtoList
:
TagItemDto
[]
}
export
interface
ChangeUsageStatusDto
{
id
:
number
...
...
src/api/backend/index.ts
View file @
50ca5eb9
...
...
@@ -4,10 +4,11 @@ export * from './carousel'
export
*
from
'./columnSettings'
export
*
from
'./case'
export
*
from
'./shop'
export
*
from
'./activity'
// 类型
export
*
from
'./tags/types'
export
*
from
'./carousel/types'
export
*
from
'./columnSettings/types'
export
*
from
'./case/types'
export
*
from
'./shop/types'
export
*
from
'./activity/types'
src/api/case/types.ts
View file @
50ca5eb9
...
...
@@ -9,7 +9,7 @@ import {
AuditStatusEnum
,
}
from
'@/constants'
type
TagItemDto
=
{
export
type
TagItemDto
=
{
tagId
:
number
type
:
TagTypeEnum
keywordType
:
TagLevelEnum
...
...
src/api/index.ts
View file @
50ca5eb9
...
...
@@ -14,6 +14,7 @@ export * from './login'
export
*
from
'./article'
export
*
from
'./online'
export
*
from
'./otherUserPage'
export
*
from
'./auction'
// 导出类型
export
*
from
'./task/types'
export
*
from
'./shop/types'
...
...
@@ -29,3 +30,4 @@ export * from './login/types'
export
*
from
'./article/types'
export
*
from
'./online/types'
export
*
from
'./otherUserPage/types'
export
*
from
'./auction/types'
src/api/user/index.ts
View file @
50ca5eb9
...
...
@@ -21,6 +21,8 @@ import type {
AuditComplaintDto
,
ComplaintListSearchParams
,
SelfCaseSearchParams
,
SelfAuctionRecordSearchParams
,
SelfAuctionRecordItemDto
,
}
from
'./types'
import
type
{
BackendServicePageResult
}
from
'@/utils/request/types'
...
...
@@ -166,3 +168,14 @@ export const auditComplaint = (data: AuditComplaintDto) => {
data
,
})
}
/**
* 获取我的竞拍记录-分页
*/
export
const
getSelfAuctionRecord
=
(
data
:
SelfAuctionRecordSearchParams
)
=>
{
return
service
.
request
<
BackendServicePageResult
<
SelfAuctionRecordItemDto
>>
({
url
:
'/cultureAuctionItems/listBidRecord'
,
method
:
'POST'
,
data
,
})
}
src/api/user/types.ts
View file @
50ca5eb9
...
...
@@ -111,6 +111,7 @@ export interface UpdateUserInfoDto {
// 审核列表查询参数
export
interface
AuditListSearchParams
extends
PageSearchParams
{
isAudit
:
AuditStatusEnum
type
:
ArticleTypeEnum
|
''
}
// 待审核列表item
...
...
@@ -323,3 +324,21 @@ export interface AuditComplaintDto {
status
:
AuditStatusEnum
remark
?:
string
}
/**
* 我的竞拍记录搜索参数
*/
export
interface
SelfAuctionRecordSearchParams
extends
PageSearchParams
{
id
?:
number
}
/**
* 我的竞拍记录item
*/
export
interface
SelfAuctionRecordItemDto
{
auctionId
:
number
auctionName
:
string
auctionTime
:
number
auctionType
:
number
auctionValue
:
number
}
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