mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
重构多个组件以优化代码格式和可读性,删除不必要的文件,更新类型定义,添加数据分析路由
This commit is contained in:
@@ -34,6 +34,7 @@ export interface UserInfo extends UserBasicInfo {
|
||||
biliId?: number
|
||||
biliRoomId?: number
|
||||
canRequestSong: boolean
|
||||
streamerInfo?: BaseStreamerModel
|
||||
extra?: {
|
||||
enableFunctions: FunctionTypes[]
|
||||
isInBlackList: boolean
|
||||
@@ -61,8 +62,9 @@ export interface AccountInfo extends UserInfo {
|
||||
biliVerifyCode?: string
|
||||
bindEmail?: string
|
||||
settings: UserSetting
|
||||
consumptionSetting: UserConsumptionSetting
|
||||
consumptionSettings: UserConsumptionSetting
|
||||
token: string
|
||||
point: number
|
||||
|
||||
biliAuthCode?: string
|
||||
biliAuthCodeStatus: BiliAuthCodeStatusType
|
||||
@@ -76,7 +78,7 @@ export interface AccountInfo extends UserInfo {
|
||||
streamerInfo?: StreamerModel
|
||||
biliUserAuthInfo?: BiliAuthModel
|
||||
}
|
||||
export interface StreamerModel {
|
||||
export interface BaseStreamerModel {
|
||||
name: string
|
||||
uId: number
|
||||
roomId: number
|
||||
@@ -87,12 +89,14 @@ export interface StreamerModel {
|
||||
area: string
|
||||
parentArea: string
|
||||
lastStreamAt: number
|
||||
isStreaming: boolean
|
||||
}
|
||||
export interface StreamerModel extends BaseStreamerModel {
|
||||
totalDanmakuCount: number
|
||||
totalIncome: number
|
||||
totalStreamCount: number
|
||||
totalStreamTime: number
|
||||
lastDanmakuCount: number
|
||||
isStreaming: boolean
|
||||
}
|
||||
export enum BiliAuthCodeStatusType {
|
||||
NotBind,
|
||||
@@ -466,6 +470,7 @@ export interface AnchorInfo {
|
||||
uname: string
|
||||
uface: string
|
||||
uid: number
|
||||
open_id: string
|
||||
}
|
||||
|
||||
export interface OpenLiveInfo {
|
||||
|
||||
Reference in New Issue
Block a user