FishPi.js API Documentation - v0.1.28
    Preparing search index...

    Class UserInfo

    用户信息

    Index

    Constructors

    Properties

    appRole: UserAppRole = UserAppRole.Hack

    角色

    avatar: string = ''

    用户头像地址

    canFollow: "hide" | "no" | "yes" = 'hide'

    是否已经关注,未登录则为 hide

    cardBg: string = ''

    用户卡片背景

    city: string = ''

    所在城市

    follower: number = 0

    用户被关注数

    following: number = 0

    用户关注数

    intro: string = ''

    签名

    mbti: string = ''

    MBTI 性格类型

    oId: string = ''

    用户 id

    online: boolean = false

    是否在线

    onlineMinute: number = 0

    在线时长,单位分钟

    ownedMetal: Metal[] = []

    用户所有勋章列表,包含未佩戴

    points: number = 0

    用户积分

    role: string = ''

    用户组

    sysMetal: Metal[] = []

    用户勋章列表

    URL: string = ''

    首页地址

    userName: string = ''

    用户名

    userNickname: string = ''

    昵称

    userNo: string = ''

    用户编号

    Accessors

    • get name(): string

      获取用户显示名称

      Returns string

    Methods

    • 从接口数据转换为 UserInfo 实例

      Parameters

      • user: Record<string, any>

        接口数据

      Returns UserInfo

      UserInfo 实例