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 })
    }
}