Files
zkxw/web-admin/src/api/ethnic.ts
T
2026-05-17 08:36:37 +08:00

16 lines
329 B
TypeScript

import request from '@/utils/http'
export type EthnicOption = {
id: string
ethnicName: string
ethnicCode: string
orderNum?: number | null
}
export function fetchEthnicList(params?: { keyword?: string; limit?: number }) {
return request.get<{ list: EthnicOption[] }>({
url: '/web/admin/ethnics',
params
})
}