dataease-dm/core/core-frontend/src/api/auth.ts
2023-10-23 22:00:14 +08:00

24 lines
1.1 KiB
Java

import request from '@/config/axios'
export const queryUserApi = data => request.post({ url: '/user/byCurOrg', data })
export const queryRoleApi = data => request.post({ url: '/role/byCurOrg', data })
export const resourceTreeApi = (flag: string) => request.get({ url: '/auth/busiResource/' + flag })
export const menuTreeApi = () => request.get({ url: '/auth/menuResource' })
export const resourcePerApi = data => request.post({ url: '/auth/busiPermission', data })
export const menuPerApi = data => request.post({ url: '/auth/menuPermission', data })
export const busiPerSaveApi = data => request.post({ url: '/auth/saveBusiPer', data })
export const menuPerSaveApi = data => request.post({ url: '/auth/saveMenuPer', data })
export const resourceTargetPerApi = data =>
request.post({ url: '/auth/busiTargetPermission', data })
export const menuTargetPerApi = data => request.post({ url: '/auth/menuTargetPermission', data })
export const busiTargetPerSaveApi = data => request.post({ url: '/auth/saveBusiTargetPer', data })
export const menuTargetPerSaveApi = data => request.post({ url: '/auth/saveMenuTargetPer', data })