import axios from '@/libs/api.request'

// 获取工单列表
export const LstWorkOrder = (data) => {
  return axios.request({
    method: 'post',
    url: 'api/admin.php?s=Admin.WorkOrder_WorkOrder.LstWorkOrder',
    data
  })
}

// 模块列表
export const GetModuleLst = (data) => {
  return axios.request({
    method: 'post',
    url: 'api/admin.php?s=Admin.WorkOrder_WorkOrder.GetModuleLst',
    data
  })
}

// 工单详情
export const DetailWorkOrder = (data) => {
  return axios.request({
    method: 'post',
    url: 'api/admin.php?s=Admin.WorkOrder_WorkOrder.DetailWorkOrder',
    data
  })
}

// 更新工单信息
export const UpdateChatRecodeWorkOrder = (data) => {
  return axios.request({
    method: 'post',
    url: 'api/admin.php?s=Admin.WorkOrder_WorkOrder.UpdateChatRecodeWorkOrder',
    data
  })
}

// 获取上传类型UploadType
export const UploadType = (data) => {
  return axios.request({
    method: 'post',
    url: 'platform.php?s=Platform.File.UploadType',
    data
  })
}