/// import type { SpinProps } from 'antd'; export interface ApiListDataSourceProps { /** * @description title标题,默认唯一值 */ title: string; /** * @description 状态码 */ status: number; /** * @description api请求方法 */ method: 'GET' | 'POST' | 'DELETE' | 'PUT'; /** * @description 描述 */ description?: string; /** * @description 自定义方法颜色 */ methodColor?: string; } export interface ApiListProps { className?: string; rootClassName?: string; style?: React.CSSProperties; dataSource?: ApiListDataSourceProps[]; loading?: boolean | SpinProps; prefixCls?: string; showStatus?: boolean; rowKey?: string; } export interface EditTableData { id?: string; key?: string; value?: string; required?: string; description?: string; selected?: boolean; } export interface ApiTableDataProps { params?: EditTableData[]; header?: EditTableData[]; ak?: string; sk?: string; body?: string; keyDesc?: string; } export type ApiTabKey = 'params' | 'auth' | 'header' | 'body'; export type ApiExtraKey = 'Code' | 'Sheet'; export interface ApiTableRef { getFormValue: () => ApiTableDataProps; } export interface AuthItemLabelProps { akLabel: string; skLabel: string; }