import { RoleInfo, RoleQuery } from '@/api/interface/system/role'
import http from '@/axios'

class RoleApi {
  /**
   * 获取角色列表
   * @param params
   * @returns {*}
   */
  static pageRoleApi = (params: RoleQuery): Promise<ResultData<any>> => {
    return http.get<ResPage<RoleInfo>>({ url: '/system/role/page', params })
  }
}
export default RoleApi
