Vue3 重构:REVIEW 角色管理

This commit is contained in:
YunaiV
2023-03-27 12:29:34 +08:00
parent 17395a4980
commit 1a4311309d
5 changed files with 36 additions and 75 deletions

View File

@ -10,20 +10,13 @@ export interface RoleVO {
createTime: Date
}
export interface RolePageReqVO extends PageParam {
name?: string
code?: string
status?: number
createTime?: Date[]
}
export interface UpdateStatusReqVO {
id: number
status: number
}
// 查询角色列表
export const getRolePage = async (params: RolePageReqVO) => {
export const getRolePage = async (params: PageParam) => {
return await request.get({ url: '/system/role/page', params })
}