refactor: update "hooks/useFetchSelect" type

This commit is contained in:
pany 2024-02-25 12:52:55 +08:00
parent 2ad674b0b0
commit 01249a4f5a

View File

@ -10,11 +10,7 @@ interface SelectOption {
} }
/** 接口响应格式 */ /** 接口响应格式 */
interface ApiData { type ApiData = ApiResponseData<SelectOption[]>
code: number
data: SelectOption[]
message: string
}
/** 入参格式,暂时只需要传递 api 函数即可 */ /** 入参格式,暂时只需要传递 api 函数即可 */
interface FetchSelectProps { interface FetchSelectProps {