Files
property-manager-side/wuye-manager-uniapp/api/api.js

48 lines
1.2 KiB
JavaScript

import request,{get,post} from "./request.js"
// =======账号密码登录========
export const getLoginPassword = (data) =>{
return post('/api/butler/auth/loginByPassword',data)
}
// 获取验证码
export const getSendCode = (data) =>{
return post('/api/butler/auth/sendSmsCode',data)
}
// 手机验证码登录
export const getLoginBySms = (data) =>{
return post('/api/butler/auth/loginBySms',data)
}
// 忘记密码接口
export const getResetPassword = (data) =>{
return post('/api/butler/auth/forgetPassword',data)
}
// ======首页=====
// 获取小区列表
export const getVillageList = (data) =>{
return get('/api/inspection/today/villageList',data)
}
// 切换小区
export const switchVillage = (data) =>{
return post('/api/inspection/today/switchVillage',data)
}
// ======故障上报=====
// 获取报修项目
export const getRepairOrder = () =>{
return get('/manage/repair/order/list')
}
// 提交维修信息
export const addRepairList = (data) =>{
return post('/manage/repair/order',data)
}
// 上传图片
export const uploadFile = (filePath) => {
return upload(filePath,' /resource/oss/upload');
}
// 一键开门
export const openDoor = (data) =>{
return post('/manage/remote/open',data)
}