Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
3dbcbf4c
authored
Mar 27, 2023
by
fessor
Committed by
Gitee
Mar 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改api定义与命名
Signed-off-by: fessor <352475718@qq.com>
parent
d9e79250
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/api/system/permission/index.ts
+1
-1
src/api/system/user/index.ts
+2
-2
No files found.
src/api/system/permission/index.ts
View file @
3dbcbf4c
...
...
@@ -37,6 +37,6 @@ export const listUserRolesApi = async (userId: number) => {
}
// 赋予用户角色
export
const
a
a
ssignUserRoleApi
=
async
(
data
:
PermissionAssignUserRoleReqVO
)
=>
{
export
const
assignUserRoleApi
=
async
(
data
:
PermissionAssignUserRoleReqVO
)
=>
{
return
await
request
.
post
({
url
:
'/system/permission/assign-user-role'
,
data
})
}
src/api/system/user/index.ts
View file @
3dbcbf4c
...
...
@@ -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
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment