用户信息

interface Profile {
    areaCode?: string;
    avatarImage: AvatarImage;
    backgroundImage: BackgroundImage;
    backgroundMaskColor: string;
    bio: string;
    birthday?: string;
    blocking: boolean;
    briefIntro: string;
    city: string;
    country: string;
    createdAt: string;
    following: boolean;
    gender?: "MALE" | "FEMALE";
    groupId: string;
    groupVersion: number;
    hasStories?: boolean;
    id: string;
    industries?: number[];
    industry?: string;
    isBanned?: boolean;
    isBannedForever: boolean;
    isBetaUser?: boolean;
    isDefaultScreenName?: boolean;
    isLoginUser?: boolean;
    isSponsor: boolean;
    isVerified: boolean;
    isWatching: boolean;
    lastChangeNameTime?: string;
    medals: Medal[];
    mobilePhoneNumber?: string;
    muting: boolean;
    preferences?: Preferences;
    profileImageUrl: string;
    profileTags: ProfileTag[];
    profileVisitInfo?: ProfileVisitInfo;
    province: string;
    registerAppVersion?: string;
    relationshipState?: {
        id: string;
        text: string;
    };
    respected: boolean;
    restrictedAvatarChange?: RestrictedChange;
    restrictedNameChange?: RestrictedChange;
    school?: School;
    screenName: string;
    showRespect: boolean;
    sponsorIconType?: string;
    statsCount: StatsCount;
    storyStatus: string;
    topicRoles: any[];
    updatedAt: string;
    userHasPosted?: boolean;
    username: string;
    usernameSet?: boolean;
    verifyMessage: string;
    watching: boolean;
    wechatOpenId?: string;
    wechatUnionId?: string;
    wechatUserInfo: WechatUserInfo;
    zodiac: string;
    [key: string]: any;
}

Indexable

  • [key: string]: any

Properties

areaCode?: string

区号,仅自己可见,如 +86

avatarImage: AvatarImage

头像信息

backgroundImage: BackgroundImage

背景图

backgroundMaskColor: string

背景图遮罩颜色,如 #141A1F

bio: string

签名

birthday?: string

生日,仅自己可见,如 2000-01-01

blocking: boolean

是否拉黑

briefIntro: string

自我介绍,与 bio 一致

city: string

城市 ID,如 001044001

country: string

国家 ID,如 001

createdAt: string

注册时间

ISO-8601 格式,如 2015-03-04T00:00:00.000Z

following: boolean

是否关注

gender?: "MALE" | "FEMALE"

性别

groupId: string
groupVersion: number
hasStories?: boolean

是否有日记,仅自己可见

id: string

用户ID

industries?: number[]

行业

industry?: string

行业

isBanned?: boolean

是否被封禁,仅自己可见

isBannedForever: boolean

是否永久封禁

isBetaUser?: boolean

是否是测试版用户,仅自己可见

isDefaultScreenName?: boolean

是否是默认昵称,仅自己可见

isLoginUser?: boolean

是否是登录用户,仅自己可见

isSponsor: boolean

是否是赞助者

isVerified: boolean

是否已认证

isWatching: boolean

是否特别关心

lastChangeNameTime?: string

上次改名时间,仅自己可见

ISO-8601 格式,如 2015-03-04T00:00:00.000Z

medals: Medal[]

勋章

mobilePhoneNumber?: string

手机号,仅自己可见

有打码,如 *******1234

muting: boolean

是否 不看TA的内容

preferences?: Preferences

偏好设置,仅自己可见

profileImageUrl: string

头像图片地址,120px x 120px

profileTags: ProfileTag[]

主页标签

profileVisitInfo?: ProfileVisitInfo

访客信息,仅自己可见

province: string

身份 ID,如 001044

registerAppVersion?: string

注册 APP 版本,仅自己可见

relationshipState?: {
    id: string;
    text: string;
}

情感状态

respected: boolean

是否夸夸过

restrictedAvatarChange?: RestrictedChange

更换头像限制信息,仅自己可见

restrictedNameChange?: RestrictedChange

更换昵称限制信息,仅自己可见

school?: School
screenName: string

昵称

showRespect: boolean

是否显示 夸夸

sponsorIconType?: string
statsCount: StatsCount

统计信息

storyStatus: string

日记状态

topicRoles: any[]
updatedAt: string

最后更新资料时间

ISO-8601 格式,如 2015-03-04T00:00:00.000Z

userHasPosted?: boolean

是否发过动态,仅自己可见

username: string

用户名

usernameSet?: boolean
verifyMessage: string

认证信息

watching: boolean

是否 添加到桌面小组件

wechatOpenId?: string

微信 OpenId,仅自己可见

wechatUnionId?: string

微信 UnionId,仅自己可见

wechatUserInfo: WechatUserInfo

微信用户信息

zodiac: string

星座