// import { request, serializeQuery } from '@/utils/request' import type { CaseSelectionModel, ProjectCaseAndCaseCountVo, ProjectCaseUserBo, ProjectCaseVo, } from '@/types/business/cases' export function getCaseList( bo: ProjectCaseUserBo, pageNum: number, pageSize: number, ): Promise { return request({ url: '/web/projectCase/list', method: 'get', params: { ...bo, pageNum, pageSize }, paramsSerializer: { serialize: serializeQuery }, }) } export function getCaseDetail(id: string): Promise { return request({ url: `/web/projectCase/${id}`, method: 'get', }) } export function collectCase(id: string): Promise { return request({ url: '/web/projectCase/collect', method: 'post', data: { id }, }) } export function getCaseCategories(): Promise { return request({ url: '/web/projectCase/categories', method: 'get', }) } export function getFeaturedCases(type?: string): Promise { return request({ url: '/web/projectCase/mostViewed', method: 'get', params: type ? { type } : undefined, }) }