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.
35 lines
948 B
TypeScript
35 lines
948 B
TypeScript
import request from '@/config/axios'
|
|
export interface RecipePointRecordVO {
|
|
recipe_id?: number
|
|
name: string
|
|
max: number
|
|
min:number
|
|
data_type: string
|
|
data_unit: string
|
|
remark: string
|
|
refer: string
|
|
}
|
|
|
|
export const RecipePointRecordApi = {
|
|
// 新增记录
|
|
createRecipePointRecordBatch: async (data: RecipePointRecordVO[]) => {
|
|
return await request.post({ url: `/iot/recipe-point-record/batch-create`, data })
|
|
},
|
|
getRecipePointRecordPage: async (params: any) => {
|
|
return await request.get({ url: `/iot/recipe-point-record/page`, params })
|
|
},
|
|
updateRecipePointRecord: async (params: {
|
|
id: string | number
|
|
recipeId?: string | number
|
|
name?: string
|
|
max?: string | number
|
|
min?: string | number
|
|
dataType?: string | number
|
|
dataUnit?: string | number
|
|
remark?: string
|
|
refer?: string
|
|
}) => {
|
|
return await request.put({ url: `/iot/recipe-point-record/update`, data:params })
|
|
}
|
|
}
|