map/ui/dasadmin/src/api/backend/dashboard.ts

20 lines
537 B
TypeScript
Raw Normal View History

2024-06-13 11:30:23 +08:00
import createAxios from '/@/utils/axios'
2024-10-24 09:04:51 +08:00
import {addDataType, getDataReturnType, getDataType, getTreeDataReturnType} from "/@/views/backend/auth/org/type";
2024-06-13 11:30:23 +08:00
export const url = '/admin/Dashboard/'
export function index() {
return createAxios({
url: url + 'index',
method: 'get',
})
}
2024-10-24 09:04:51 +08:00
export const getInstitutionalListReq = (data: getDataType) => {
return createAxios<addDataType, getDataReturnType<getTreeDataReturnType>>({
url: '/api/org/query',
method: 'post',
data: data,
})
}