'use strict'; import request from '@/utils/request.js'; // 全局公共api,不属于其他模块 // h5 登录 export function sysLogin(data) { return request({ url: '/sysLogin/app/user/login', headers: { isToken: false }, method: 'post', data: data, }); } // 用户密码修改 export function updateUserPwd(data) { return request({ url: '/sysLogin/updatePwd', method: 'post', data: data, }); } // 获取当前蒲公英APP版本 export function getVersionByVersion() { return request({ url: '/XKProxy/appVersion/pgyerVersion', method: 'get', }); } // 检测APP是否有更新 export function appVersionCheck() { return request({ url: '/XKProxy/appVersion/pgyerVersionCheck', method: 'get', }); } // 根据字典类型查询字典数据信息 export function getDicts(query) { return request({ url: '/XKProxy/sys/sysdic/' + query, method: 'get', }); } // 文件图片上传 export function fileUpload(data) { return request({ url: '/XKProxy/ops_common/uploadallfiles', method: 'post', data: data, timeout: 60 * 1000, }); } // 文件删除 export function fileDelete(data) { return request({ url: '/XKProxy/sys/file/filedelete', method: 'post', data: data, timeout: 60 * 1000, }); }