Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intelligent_qp_manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
intelligent_qp_manager
Commits
f4d55482
Commit
f4d55482
authored
Oct 25, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0d772012
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
role.ts
src/api/system/role/role.ts
+44
-0
No files found.
src/api/system/role/role.ts
0 → 100644
View file @
f4d55482
import
{
AccountParams
,
DeptListItem
,
MenuParams
,
RoleParams
,
RolePageParams
,
MenuListGetResultModel
,
DeptListGetResultModel
,
AccountListGetResultModel
,
RolePageListGetResultModel
,
RoleListGetResultModel
,
}
from
'../../demo/model/systemModel'
;
import
{
defHttp
}
from
'@/utils/http/axios'
;
enum
Api
{
deleteById
=
'/system/role/deleteLogical/'
,
setRoleStatus
=
'/system/role/changeStatus'
,
RolePageList
=
'/system/role/list'
,
roleDetail
=
'/system/role/detail/'
,
GetAllRoleList
=
'/system/role/listAll'
,
}
export
const
getAllRoleList
=
(
params
?:
RoleParams
)
=>
defHttp
.
get
<
RoleListGetResultModel
>
({
url
:
Api
.
GetAllRoleList
,
params
});
/** 删除角色*/
export
const
deleteById
=
(
params
?:
any
)
=>
defHttp
.
delete
<
any
>
({
url
:
Api
.
deleteById
+
params
});
/** 获取角色详情信息*/
export
const
roleDetailApi
=
(
params
:
any
)
=>
defHttp
.
get
<
any
>
({
url
:
Api
.
roleDetail
+
params
});
/** 获取角色列表信息*/
export
const
getRoleListByPage
=
(
params
?:
any
)
=>
defHttp
.
get
<
RolePageListGetResultModel
>
({
url
:
Api
.
RolePageList
,
params
});
/** 修改角色状态*/
export
const
setRoleStatus
=
(
businessId
:
string
,
flag
:
string
)
=>
defHttp
.
post
({
url
:
Api
.
setRoleStatus
,
params
:
{
businessId
,
flag
}
});
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