import { http } from '@/utils/http'
import type { DictEntity } from '@/types/dict'
import type { ListType, ListResponseType } from '@/types/list'
import { parseQueryValues } from '@/utils'

/** 配置列表 */
export const getConfigListApi = (params: Partial<DictEntity>, page: Partial<ListType>) => {
  return http.get<ListResponseType<DictEntity>>('/api/query/list?pagevalue=73', {
    ...page,
    ...parseQueryValues(params),
  })
}
