You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
597 B
JavaScript
24 lines
597 B
JavaScript
|
1 month ago
|
import { request } from '@umijs/max'
|
||
|
|
import webpath from '@/utils/webPath'
|
||
|
|
|
||
|
|
export async function query() {
|
||
|
|
return request('/api/users')
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function queryCurrent(params = {}) {
|
||
|
|
return request(`/${webpath.portalwebpath}/web/api/service/auth/currentUser`, {
|
||
|
|
method: 'POST',
|
||
|
|
data: {
|
||
|
|
...params,
|
||
|
|
method: 'query',
|
||
|
|
headers: {
|
||
|
|
Authorization: localStorage.getItem('antd-token-authority')
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function queryNotices() {
|
||
|
|
return request(`/${webpath.portalwebpath}/web/api/service/api/notices`)
|
||
|
|
}
|