refactor(BindContactModal): 目录化拆分 - 提取类型定义

This commit is contained in:
2026-07-30 07:42:24 +08:00
parent ad902105f5
commit 61117e50bc
@@ -0,0 +1,14 @@
import type { BindContactResponse } from "@/api/auth"
/** BindContactModal 组件属性 */
export interface BindContactModalProps {
/** 是否打开 */
open: boolean
/** 绑定成功回调 */
onSuccess?: (user: BindContactResponse["user"]) => void
/** 取消回调 */
onCancel?: () => void
}
/** 联系方式类型 */
export type ContactType = "email" | "phone"