JewelryMall/miniprogram/api/mold.ts
2026-02-14 19:29:15 +08:00

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}`)