Compare commits

..

1 Commits

Author SHA1 Message Date
洛洛希雅 c2d2f5b6d8 更改API路径 2024-04-26 23:11:17 +08:00

View File

@ -1,30 +0,0 @@
import { post } from '@/utils/request'
export function getList(data) {
return post('/api/role/queryRoleByPage', data)
}
export function doAdd(data) {
return post('/api/role/create', data)
}
export function doUpdate(data) {
return post('/api/role/update', data)
}
export function doDelete(data) {
return post('/api/role/destroy', data)
}
/**
*
* @return {Promise<AxiosResponse<{id: number, type:string, roleName: string}[]>>}
*/
export function getRoleList() {
return post('/api/role/list')
}
/**
* ID获取角色ID
*/
export function getRoleByUserId(userId) {
return post('/api/userRole/getByUserId', { userId })
}