Files
cz-app/src/types/case-library-api.ts
2026-09-21 15:41:52 +08:00

69 lines
1.5 KiB
TypeScript

export interface CaseLibraryPageQuery {
pageNum?: number
pageSize?: number
orderByColumn?: string
isAsc?: string
}
export interface CaseLibraryListQuery extends CaseLibraryPageQuery {
keyword?: string
businessType?: string
industry?: string
scaleMin?: number
scaleMax?: number
completedAtBegin?: string
completedAtEnd?: string
timeRange?: string
}
export interface CaseLibraryFavoriteListQuery extends CaseLibraryPageQuery {
pageNum: number
pageSize: number
}
export interface ProjectCaseAttachmentVo {
id?: number | string
projectId?: number | string
ossId?: string
originalName?: string
fileSize?: string
url?: string
sortOrder?: number
}
export interface ProjectCaseCatalogVo {
id?: number | string
projectId?: number | string
title?: string
content?: string
sortOrder?: number
}
export interface ProjectCaseVo {
id: number | string
caseNo?: string
caseName?: string
businessType?: string
businessIndustry?: string
industry?: string | null
enabled?: number
scale?: number | string
previewCount?: number
viewCount?: number
favoriteCount?: number
favorited?: boolean | null
coverUrl?: string | null
customerType?: string | null
projectCycle?: string | number | null
serviceTeam?: number | null
completedAt?: string | null
attachments?: ProjectCaseAttachmentVo[]
catalogs?: ProjectCaseCatalogVo[]
updateTime?: string | null
}
export interface CaseLibraryPageResult {
total: number
rows: ProjectCaseVo[]
}