Newer
Older
smart-metering-front / src / api / device / borrow.ts
liyaguang on 28 Dec 2022 702 bytes feat: 设备借用申请列表新建
// 设备借用相关接口api
import request from '../index'
import type{ searchType } from '@/views/device/borrow/borrow-interface'
// 设备借用申请列表
export function getApplyList(data: searchType) {
  return request({
    url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`,
    method: 'post',
    data,
  })
}
// 设备借用申请新建
export function addApply(data: object) {
  return request({
    url: '/equipmentApply/addEquipmentApply',
    method: 'post',
    data,
  })
}
// 设备借用申请详情
export function detailApply(data: object) {
  return request({
    url: '/equipmentApply/equipmentApplyInfo',
    method: 'post',
    data,
  })
}