增加检测计划功能

This commit is contained in:
GYYM
2024-11-07 13:22:51 +08:00
parent 4fc0781e05
commit 1ec486a42d
9 changed files with 939 additions and 214 deletions

View File

@@ -0,0 +1,27 @@
import { ResPage } from '@/api/interface'
import { Plan } from './interface'
import { ADMIN as rePrefix } from '@/api/config/serviceName'
import http from '@/api'
/**
* @name 检测计划管理模块
*/
// 获取检测计划列表
export const getPlanList = (params: Plan.ReqPlanParams) => {
return http.post<ResPage<Plan.PlanBO>>(`/plan/list`, params)
}
// 新增检测计划
export const addPlan = (params: Plan.PlanBO) => {
return http.post(`/role/add`, params)
}
// 编辑检测计划
export const editPlan = (params: Plan.PlanBO) => {
return http.post(`/role/edit`, params)
}
// 删除检测计划
export const deletePlan = (params: { id: string[] }) => {
return http.post(`/role/del`, params)
}