flying-monkey/jsFile/public-api.js

29 lines
842 B
JavaScript
Raw Normal View History

import request from './requst.js';
2022-04-08 10:43:32 +00:00
// 共用图片上传接口
export function uploadImg(data) {
return request.upload("/universal/api.upload/upload", data);
2022-04-08 10:43:32 +00:00
}
// 解决方案列表接口
export function getPlanType(data) {
return request.get("/universal/api.solution/solution_list", data);
2022-04-13 12:36:32 +00:00
}
// 更新用户地理位置
export function renewLocation(data) {
return request.post("/universal/api.user/update_location", data);
}
// 搜索客户、项目、备品
export function queryFun(data) {
return request.post("/universal/api.search/search", data);
}
// 处理工单,获取
export function handleWorkOrderGet(data) {
return request.get("/universal/api.order/process_order", data);
}
// 处理工单,提交
export function handleWorkOrderSubmit(data) {
return request.post("/universal/api.order/process_order", data);
}