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.
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
export interface RecipePlanDetailVO {
|
|
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 RecipePlanDetailApi = {
|
|
getRecipePlanDetailPage: async (params: any) => {
|
|
return await request.get({ url: `/iot/recipe-plan-detail/page`, params })
|
|
},
|
|
|
|
createRecipePlanDetail: async (data: Partial<RecipePlanDetailVO>) => {
|
|
return await request.post({ url: `/iot/recipe-plan-detail/create`, data })
|
|
},
|
|
|
|
updateRecipePlanDetail: async (data: Partial<RecipePlanDetailVO>) => {
|
|
return await request.put({ url: `/iot/recipe-plan-detail/update`, data })
|
|
},
|
|
|
|
deleteRecipePlanDetail: async (id: number) => {
|
|
return await request.delete({ url: `/iot/recipe-plan-detail/delete?id=` + id })
|
|
},
|
|
|
|
exportRecipePlanDetail: async (params: any) => {
|
|
return await request.download({ url: `/iot/recipe-plan-detail/export-excel`, params })
|
|
},
|
|
|
|
createRecipeDeviceRecordBatch: async (id: number) => {
|
|
return await request.post({ url: `/iot/recipe-plan-detail/batch-create?id=` + id })
|
|
},
|
|
|
|
}
|
|
|