2024-10-23 20:53:58 +08:00
|
|
|
import { ResPage } from '@/api/interface'
|
|
|
|
|
import { Device } from './interface'
|
|
|
|
|
import { ADMIN as rePrefix } from '@/api/config/serviceName'
|
|
|
|
|
import http from '@/api'
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @name 被检设备管理模块
|
|
|
|
|
*/
|
|
|
|
|
// 获取检测脚本列表
|
|
|
|
|
export const getDeviceList = (params: Device.ReqDeviceParams) => {
|
|
|
|
|
return http.post<ResPage<Device.ResDeviceList>>(`/RoleList_Post`, params)
|
|
|
|
|
// return http.post<ResPage<Role.ResRoleList>>(`${rePrefix}/device/list`, params)
|
|
|
|
|
}
|
2024-10-29 11:17:04 +08:00
|
|
|
|
|
|
|
|
export const getPlan_DeviceList = (params: Device.DeviceList) => {
|
|
|
|
|
//return http.post<ResPage<Device.ResDeviceList>>(`/RoleList_Post`, params)
|
|
|
|
|
// return http.post<ResPage<Role.ResRoleList>>(`${rePrefix}/device/list`, params)
|
|
|
|
|
}
|