Commit 3dbcbf4c by fessor Committed by Gitee

fix: 修改api定义与命名

Signed-off-by: fessor <352475718@qq.com>
parent d9e79250
...@@ -37,6 +37,6 @@ export const listUserRolesApi = async (userId: number) => { ...@@ -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 }) return await request.post({ url: '/system/permission/assign-user-role', data })
} }
...@@ -43,12 +43,12 @@ export const getUserApi = (id: number) => { ...@@ -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 }) 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 }) return request.put({ url: '/system/user/update', data })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment