'use strict'; import request from '@/utils/request.js'; // 全局公共api,不属于其他模块 // h5 登录 export function appLogin(data) { return request({ url: '/auth/login', headers: { isToken: false }, method: 'post', data: data, }); } // 退出方法 export function logout() { return request({ url: '/auth/logout', method: 'post', }); } // 获取登录验证码 export function getCodeImg() { return request({ url: '/code', headers: { isToken: false }, method: 'get', timeout: 20000, }); } // 获取用户详细信息 export function getInfo() { return request({ url: '/system/user/getInfo', method: 'get', }); } // 根据字典类型查询字典数据信息 export function getDicts(query) { return request({ url: '/system/dict/data/type/' + query, method: 'get', }); } // 文件图片上传 export function fileUpload(data) { return request({ url: '/system/upload', method: 'post', data: data, timeout: 60 * 1000, }); } // 文件删除 export function fileDelete(ids) { return request({ url: '/system/' + ids, method: 'delete', }); } // 搜索APP菜单列表 export function appMenuGetRouters(query) { return request({ url: '/system/appMenu/getRouters', method: 'get', params: query, }); } // 查询海绵项目列表 export function getProjects(data) { return request({ url: '/business/projectInfoNew/list', method: 'get', data, }); } // 项目问题统计 export function patrolProblemList(query) { return request({ url: '/business/patrolProblem/list', method: 'get', params: query, }); } // 用户密码重置 export function updateUserPwd(data) { return request({ url: '/system/user/profile/updatePwd', method: 'put', params: data, }); } // 获取当前蒲公英APP版本 export function appVersion(query) { return request({ url: '/system/version/getCurrentVersionInfo', method: 'get', params: query, }); } // 检测APP是否有更新 export function appVersionCheck(query) { return request({ url: '/system/version/pgyerVersionCheck', method: 'get', params: query, }); }