You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
855 B
TypeScript

import request from '@/config/axios'
export interface RecipePointVO {
id: number
recipeId: string | number
name?: string
max?: string | number
min?: string | number
dataType?: string
dataUnit?: string
remark?: string
createTime?: string
}
export const RecipePointApi = {
getRecipePointPage: async (params: any) => {
return await request.get({ url: `/iot/recipe-point/page`, params })
},
createRecipePoint: async (params: Partial<RecipePointVO>) => {
return await request.post({ url: `/iot/recipe-point/create`, data: params })
},
updateRecipePoint: async (params: Partial<RecipePointVO>) => {
return await request.put({ url: `/iot/recipe-point/update`, data: params })
},
deleteRecipePoint: async (id: number) => {
return await request.delete({ url: `/iot/recipe-point/delete`, params: { id } })
}
}