feat(pages): 人才市场去抽屉直接跳个人主页;未自定义主页渲染平台默认名片(基础资料+服务+发起沟通)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// 个人主页(OPC 公开名片页)API(/pages/*,0052)
|
||||
// 复用 hall 同款 getApiUrl/getApiToken 凭据出口。
|
||||
import { getApiUrl, getApiToken } from "../config";
|
||||
import type { HallService, TalentProfile } from "./hall";
|
||||
|
||||
function authHeaders(): Record<string, string> {
|
||||
const t = getApiToken();
|
||||
@@ -35,13 +36,14 @@ export interface UserBadge {
|
||||
}
|
||||
|
||||
export interface UserPageRender {
|
||||
/** null 表示该用户未自定义个人主页(渲染平台默认名片)。 */
|
||||
page: {
|
||||
pageType: "html" | "embed";
|
||||
htmlContent: string;
|
||||
embedUrl: string;
|
||||
capabilities: PageCapability[];
|
||||
published: boolean;
|
||||
};
|
||||
} | null;
|
||||
profile: {
|
||||
nickname: string;
|
||||
avatar: string;
|
||||
@@ -54,6 +56,11 @@ export interface UserPageRender {
|
||||
text: string;
|
||||
};
|
||||
ownerIsSelf: boolean;
|
||||
/** page 为 null 时的默认名片数据(人才档案 + 已上架服务)。 */
|
||||
default?: {
|
||||
talent: TalentProfile | null;
|
||||
services: HallService[];
|
||||
};
|
||||
}
|
||||
|
||||
export interface MyPage {
|
||||
|
||||
Reference in New Issue
Block a user