|
|
@ -2,7 +2,7 @@ import http from 'libs/http' |
|
|
|
|
|
|
|
const baseUrl = '/tasks/' |
|
|
|
export const setTargetTemperature = (params: Home.SetTargetTemperatureParams): Promise<null> => http.post('/heat/target-temperature', params) |
|
|
|
export const trayTube = (params: Home.TrayTubeParams): Promise<null> => http.post('/tray/out', params) |
|
|
|
export const trayTube = (params: Home.TrayTubeParams): Promise<null> => http.post('/tray/tube', params) |
|
|
|
export const addTask = (params: Task.TaskAdd): Promise<null> => http.post(baseUrl, params) |
|
|
|
export const stopTask = (): Promise<null> => http.post(`${baseUrl}stop`) |
|
|
|
export const getTask = (id: number): Promise<Task.Task> => http.get(`${baseUrl}${id}`) |
|
|
|