fix: 修改api定义与命名
Signed-off-by: fessor <352475718@qq.com>
This commit is contained in:
parent
d9e79250e2
commit
3dbcbf4cf0
@ -37,6 +37,6 @@ export const listUserRolesApi = async (userId: number) => {
|
||||
}
|
||||
|
||||
// 赋予用户角色
|
||||
export const aassignUserRoleApi = async (data: PermissionAssignUserRoleReqVO) => {
|
||||
export const assignUserRoleApi = async (data: PermissionAssignUserRoleReqVO) => {
|
||||
return await request.post({ url: '/system/permission/assign-user-role', data })
|
||||
}
|
||||
|
@ -43,12 +43,12 @@ export const getUserApi = (id: number) => {
|
||||
}
|
||||
|
||||
// 新增用户
|
||||
export const createUserApi = (data: UserVO) => {
|
||||
export const createUserApi = (data: UserVO | Recordable) => {
|
||||
return request.post({ url: '/system/user/create', data })
|
||||
}
|
||||
|
||||
// 修改用户
|
||||
export const updateUserApi = (data: UserVO) => {
|
||||
export const updateUserApi = (data: UserVO | Recordable) => {
|
||||
return request.put({ url: '/system/user/update', data })
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user