Upload source code

This commit is contained in:
2026-03-12 19:36:34 +00:00
parent 783b6cb7e8
commit c7fb0c8561
158 changed files with 22553 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import api from './api';
import type { YieldStudy } from '../types';
const BASE_URL = '/yield-studies';
export const getStudies = () => api.get<YieldStudy[]>(BASE_URL);
export const createStudy = (data: Partial<YieldStudy>) => api.post<YieldStudy>(BASE_URL, data);
export const updateStudy = (id: string, data: Partial<YieldStudy>) => api.put<YieldStudy>(`${BASE_URL}/${id}`, data);
export const deleteStudy = (id: string) => api.delete(`${BASE_URL}/${id}`);