mirror of
https://github.com/dataease/dataease.git
synced 2025-02-28 23:23:05 +08:00
69 lines
1.2 KiB
JavaScript
69 lines
1.2 KiB
JavaScript
![]() |
import request from '@/common/js/request'
|
||
|
|
||
|
export function requestHome(data) {
|
||
|
return request({
|
||
|
url: '/mobile/home/query',
|
||
|
method: 'post',
|
||
|
loading: true,
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function requestDir(data) {
|
||
|
return request({
|
||
|
url: '/mobile/dir/query',
|
||
|
method: 'post',
|
||
|
loading: true,
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function requestMe() {
|
||
|
return request({
|
||
|
url: '/mobile/me/query',
|
||
|
method: 'post',
|
||
|
loading: true
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function linkInfo(panelId) {
|
||
|
return request({
|
||
|
url: '/api/link/currentGenerate/'+panelId,
|
||
|
method: 'post',
|
||
|
loading: true
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function switchLink(data) {
|
||
|
return request({
|
||
|
url: '/api/link/switchLink',
|
||
|
method: 'post',
|
||
|
loading: true,
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function star(panelId) {
|
||
|
return request({
|
||
|
url: '/api/store/'+panelId,
|
||
|
method: 'post',
|
||
|
loading: true
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function unstar(panelId) {
|
||
|
return request({
|
||
|
url: '/api/store/remove/'+panelId,
|
||
|
method: 'post',
|
||
|
loading: true
|
||
|
})
|
||
|
}
|
||
|
export function starStatus(panelId) {
|
||
|
return request({
|
||
|
url: '/api/store/status/' + panelId,
|
||
|
method: 'post',
|
||
|
loading: true
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|