mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 11:05:06 +08:00
perf: 完善类型
This commit is contained in:
@ -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 })
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user