重构多个组件以优化代码格式和可读性,删除不必要的文件,更新类型定义,添加数据分析路由

This commit is contained in:
2025-03-27 18:37:01 +08:00
parent 8bcf201fd4
commit 24f1c413c4
115 changed files with 10879 additions and 2691 deletions

View File

@@ -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 {