Initial commit
This commit is contained in:
44
ruoyi-ui/src/api/monitor/version.js
Normal file
44
ruoyi-ui/src/api/monitor/version.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询版本信息
|
||||
export function getVersionInfo() {
|
||||
return request({
|
||||
url: '/system/version/info',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 检查版本更新
|
||||
export function checkVersion(currentVersion) {
|
||||
return request({
|
||||
url: '/system/version/check',
|
||||
method: 'get',
|
||||
params: {
|
||||
currentVersion: currentVersion
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 上传文件到文件服务
|
||||
export function uploadFile(data) {
|
||||
return request({
|
||||
url: '/file/uploads',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 更新版本信息和下载链接
|
||||
export function updateVersion(data) {
|
||||
return request({
|
||||
url: '/system/version/update',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user