fix: 修改api定义与命名

Signed-off-by: fessor <352475718@qq.com>
This commit is contained in:
fessor 2023-03-27 02:18:41 +00:00 committed by Gitee
parent d9e79250e2
commit 3dbcbf4cf0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -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 })
}

View File

@ -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 })
}