fix(auth): LoginResponse 增加 phone/phoneBound/wxBound/wxMiniBound 绑定状态字段

个人中心设置页据此识别手机号与小程序/微信绑定;后端 /auth/me 已返回这些字段
This commit is contained in:
Pine
2026-08-27 20:27:43 +08:00
parent 5bad4f5c6c
commit 64d75249b4
+27
View File
@@ -10,6 +10,12 @@ export interface LoginResponse {
permissions?: string[];
scope_region_ids?: string[];
scope_level?: string;
// 绑定状态(/auth/me 与登录响应均返回,供个人中心设置页展示)
phone?: string;
phoneBound?: boolean;
wxBound?: boolean;
wxMiniBound?: boolean;
account_type_label?: string;
}
// ---- 管理业务模型(server-core /admin/* 端点,部分端点尚未实现)----
@@ -152,6 +158,19 @@ export interface ParkCompany {
bio?: string;
founder?: string;
owner_user_id?: string;
legal_person?: string;
legal_phone?: string;
registered_capital?: string;
company_type?: string;
honors?: string;
address?: string;
contact_phone?: string;
founded_at?: string;
emp_total?: number | null;
emp_grad?: number | null;
emp_layoff?: number | null;
emp_veteran?: number | null;
emp_migrant?: number | null;
compute_discount?: number; // 折扣%(只增不减)
compute_quota?: number; // 企业算力配额(只增不减)
compute_quota_used?: number;
@@ -166,6 +185,14 @@ export interface ParkMember {
phone?: string;
role?: string;
certification_status?: string;
park_company_id?: string | null;
company?: string;
gender?: string;
birthday?: string;
id_card?: string;
ethnicity?: string;
grad_school_major?: string;
grad_time?: string;
compute_quota?: number;
compute_used_quota?: number;
status?: string;