import { createCURD } from '@/service/base.ts' import { RFormTypes } from '@/types/r-form/model' import request from '@/request.ts' const model = (api: string) => { return { ...createCURD(api), proxy: async (params?: { path: string, body: any, method?: string }) => { return request.post(`/x_form/proxy`, { api: `${api}/ui/curd`, method: 'post', ...params }) } } } export { model }