11 lines
344 B
TypeScript
11 lines
344 B
TypeScript
import { get } from '../utils/request'
|
|
import type { MoldInfo } from '../types'
|
|
|
|
/** 获取版房列表 */
|
|
export const getMoldList = (params?: { keyword?: string }) =>
|
|
get<MoldInfo[]>('/api/molds', params as Record<string, unknown>)
|
|
|
|
/** 获取版房详情 */
|
|
export const getMoldDetail = (id: number) =>
|
|
get<MoldInfo>(`/api/molds/${id}`)
|