80 lines
1.3 KiB
TypeScript
80 lines
1.3 KiB
TypeScript
export interface StalkResult {
|
|
status: "success" | "error"
|
|
message?: string
|
|
result?: {
|
|
users: Users
|
|
stats: Stats
|
|
posts: Posts[]
|
|
}
|
|
}
|
|
|
|
export interface Users {
|
|
username: string
|
|
nickname: string
|
|
avatarLarger: string
|
|
avatarThumb: string
|
|
avatarMedium: string
|
|
signature: string
|
|
verified: boolean
|
|
privateAccount: boolean
|
|
region: string
|
|
commerceUser: boolean
|
|
usernameModifyTime: number
|
|
nicknameModifyTime: number
|
|
}
|
|
|
|
export interface Stats {
|
|
followerCount: number
|
|
followingCount: number
|
|
heartCount: number
|
|
videoCount: number
|
|
likeCount: number
|
|
friendCount: number
|
|
postCount: number
|
|
}
|
|
|
|
export interface Posts {
|
|
id: string
|
|
desc: string
|
|
createTime: number
|
|
author: string
|
|
locationCreated: string
|
|
hashtags: string[]
|
|
statistics: Statistics
|
|
video: Video
|
|
music: Music
|
|
}
|
|
|
|
export interface Statistics {
|
|
likeCount: number
|
|
shareCount: number
|
|
commentCount: number
|
|
playCount: number
|
|
favoriteCount: number
|
|
}
|
|
|
|
export interface Video {
|
|
id: string
|
|
duration: string
|
|
ratio: string
|
|
cover: string
|
|
originCover: string
|
|
dynamicCover: string
|
|
playAddr: string
|
|
downloadAddr: string
|
|
format: string
|
|
bitrate: number
|
|
}
|
|
|
|
export interface Music {
|
|
id: string
|
|
title: string
|
|
album: string
|
|
playUrl: string
|
|
coverLarge: string
|
|
coverMedium: string
|
|
coverThumb: string
|
|
authorName: string
|
|
duration: string
|
|
}
|