import request from '@/config/axios'

export interface RecipeDeviceRecordVO {
  id?: number
  code?: string
  name?: string
  recipeId?: number | string
  recipeName?: string
  planId?: number | string
  planCode?: string
  creator?: string
  createTime?: string
  source?: string
  isEnable?: string | number | boolean
}



export const RecipeDeviceRecordApi = {
  createRecipeDeviceRecordBatch: async (id: number) => {
    return await request.post({ url: `/iot/recipe-device-record/batch-create?id=` + id })
  },
getRecipeDeviceRecordPage: async (params: any) => {
    return await request.get({ url: `/iot/recipe-device-record/page`, params })
  }
}

