feat: tidying up the types
This commit is contained in:
parent
cfa4385be5
commit
c7569961e2
@ -1,4 +1,4 @@
|
|||||||
export type DLResult = {
|
export interface DLResult {
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
message?: string
|
message?: string
|
||||||
result?: {
|
result?: {
|
||||||
@ -6,21 +6,8 @@ export type DLResult = {
|
|||||||
id: string
|
id: string
|
||||||
createTime: number
|
createTime: number
|
||||||
description: string
|
description: string
|
||||||
author: {
|
author: Author
|
||||||
username: string
|
statistics: Statistics
|
||||||
nickname: string
|
|
||||||
signature: string
|
|
||||||
birthday: string
|
|
||||||
region: string
|
|
||||||
}
|
|
||||||
statistics: {
|
|
||||||
playCount: number
|
|
||||||
downloadCount: number
|
|
||||||
shareCount: number
|
|
||||||
commentCount: number
|
|
||||||
likeCount: number
|
|
||||||
favoriteCount: number
|
|
||||||
}
|
|
||||||
video?: string[]
|
video?: string[]
|
||||||
cover?: string[]
|
cover?: string[]
|
||||||
dynamic_cover?: string[]
|
dynamic_cover?: string[]
|
||||||
@ -29,24 +16,46 @@ export type DLResult = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StalkResult = {
|
export interface Author {
|
||||||
|
uid: number
|
||||||
|
username: string
|
||||||
|
nickname: string
|
||||||
|
signature: string
|
||||||
|
birthday: string
|
||||||
|
region: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Statistics {
|
||||||
|
playCount: number
|
||||||
|
downloadCount: number
|
||||||
|
shareCount: number
|
||||||
|
commentCount: number
|
||||||
|
likeCount: number
|
||||||
|
favoriteCount: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface StalkResult {
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
message?: string
|
message?: string
|
||||||
result?: {
|
result?: {
|
||||||
users: {
|
users: Users
|
||||||
username: string
|
stats: Stats
|
||||||
nickname: string
|
|
||||||
avatar: string
|
|
||||||
signature: string
|
|
||||||
verified: boolean
|
|
||||||
region: string
|
|
||||||
}
|
|
||||||
stats: {
|
|
||||||
followerCount: number
|
|
||||||
followingCount: number
|
|
||||||
heartCount: number
|
|
||||||
videoCount: number
|
|
||||||
likeCount: number
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Users {
|
||||||
|
username: string
|
||||||
|
nickname: string
|
||||||
|
avatar: string
|
||||||
|
signature: string
|
||||||
|
verified: boolean
|
||||||
|
region: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Stats {
|
||||||
|
followerCount: number
|
||||||
|
followingCount: number
|
||||||
|
heartCount: number
|
||||||
|
videoCount: number
|
||||||
|
likeCount: number
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user