perf: 完善类型

This commit is contained in:
xingyu
2022-11-29 22:26:50 +08:00
parent 7e41b763f6
commit 4e860eb254
30 changed files with 217 additions and 91 deletions

View File

@ -7,14 +7,19 @@ export interface RoleVO {
sort: number
status: number
type: number
createTime: string
createTime: Date
}
export interface RolePageReqVO extends PageParam {
name?: string
code?: string
status?: number
createTime?: string[]
createTime?: Date[]
}
export interface UpdateStatusReqVO {
id: number
status: number
}
// 查询角色列表
@ -43,7 +48,7 @@ export const updateRoleApi = async (data: RoleVO) => {
}
// 修改角色状态
export const updateRoleStatusApi = async (data: RoleVO) => {
export const updateRoleStatusApi = async (data: UpdateStatusReqVO) => {
return await request.put({ url: '/system/role/update-status', data })
}