refactor: role

This commit is contained in:
xingyu
2022-11-15 20:12:22 +08:00
parent fb5b71ca9c
commit a123c47042
4 changed files with 124 additions and 159 deletions

View File

@ -1,8 +1,24 @@
import request from '@/config/axios'
import type { RoleVO } from './types'
export type RoleVO = {
id: number
name: string
code: string
sort: number
status: number
type: number
createTime: string
}
export interface RolePageReqVO extends PageParam {
name?: string
code?: string
status?: number
createTime?: string[]
}
// 查询角色列表
export const getRolePageApi = async (params) => {
export const getRolePageApi = async (params: RolePageReqVO) => {
return await request.get({ url: '/system/role/page', params })
}

View File

@ -1,9 +0,0 @@
export type RoleVO = {
id: number
name: string
code: string
sort: number
status: number
type: number
createTime: string
}