fix: change the interface to type
This commit is contained in:
parent
66a89cdad2
commit
c7ab3ca2da
@ -1,4 +1,4 @@
|
|||||||
export interface getRequest {
|
export type getRequest = {
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
request?: {
|
request?: {
|
||||||
[key: string]: string
|
[key: string]: string
|
||||||
@ -7,7 +7,7 @@ export interface getRequest {
|
|||||||
cookie?: string
|
cookie?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MusicalDownResponse {
|
export type MusicalDownResponse = {
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
message?: string
|
message?: string
|
||||||
result?: {
|
result?: {
|
||||||
@ -26,7 +26,7 @@ export interface MusicalDownResponse {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface getMusic {
|
export type getMusic = {
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
result?: string
|
result?: string
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
export interface SSSTikFetchTT {
|
export type SSSTikFetchTT = {
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
message?: string
|
message?: string
|
||||||
result?: string
|
result?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SSSTikResponse {
|
export type SSSTikResponse = {
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
message?: string
|
message?: string
|
||||||
result?: {
|
result?: {
|
||||||
@ -18,12 +18,12 @@ export interface SSSTikResponse {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Author {
|
export type Author = {
|
||||||
avatar: string
|
avatar: string
|
||||||
nickname: string
|
nickname: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Statistics {
|
export type Statistics = {
|
||||||
likeCount: string
|
likeCount: string
|
||||||
commentCount: string
|
commentCount: string
|
||||||
shareCount: string
|
shareCount: string
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
export interface StalkResult {
|
export type StalkResult = {
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
message?: string
|
message?: string
|
||||||
result?: {
|
result?: {
|
||||||
@ -8,7 +8,7 @@ export interface StalkResult {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Users {
|
export type Users = {
|
||||||
username: string
|
username: string
|
||||||
nickname: string
|
nickname: string
|
||||||
avatarLarger: string
|
avatarLarger: string
|
||||||
@ -23,29 +23,16 @@ export interface Users {
|
|||||||
nicknameModifyTime: number
|
nicknameModifyTime: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Stats {
|
export type Stats = {
|
||||||
followerCount: number
|
followerCount: number
|
||||||
followingCount: number
|
followingCount: number
|
||||||
heartCount: number
|
heartCount: number
|
||||||
videoCount: number
|
videoCount: number
|
||||||
likeCount: number
|
likeCount: number
|
||||||
friendCount: number
|
friendCount: number
|
||||||
// postCount: number
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// export interface Posts {
|
export type Statistics = {
|
||||||
// id: string
|
|
||||||
// desc: string
|
|
||||||
// createTime: number
|
|
||||||
// author: string
|
|
||||||
// locationCreated: string
|
|
||||||
// hashtags: string[]
|
|
||||||
// statistics: Statistics
|
|
||||||
// video: Video
|
|
||||||
// music: Music
|
|
||||||
// }
|
|
||||||
|
|
||||||
export interface Statistics {
|
|
||||||
likeCount: number
|
likeCount: number
|
||||||
shareCount: number
|
shareCount: number
|
||||||
commentCount: number
|
commentCount: number
|
||||||
@ -53,7 +40,7 @@ export interface Statistics {
|
|||||||
favoriteCount: number
|
favoriteCount: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Video {
|
export type Video = {
|
||||||
id: string
|
id: string
|
||||||
duration: string
|
duration: string
|
||||||
ratio: string
|
ratio: string
|
||||||
@ -66,7 +53,7 @@ export interface Video {
|
|||||||
bitrate: number
|
bitrate: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Music {
|
export type Music = {
|
||||||
id: string
|
id: string
|
||||||
title: string
|
title: string
|
||||||
album: string
|
album: string
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
export interface TiktokAPIResponse {
|
export type TiktokAPIResponse = {
|
||||||
status: "success" | "error"
|
status: "success" | "error"
|
||||||
message?: string
|
message?: string
|
||||||
result?: {
|
result?: {
|
||||||
@ -19,7 +19,7 @@ export interface TiktokAPIResponse {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Author {
|
export type Author = {
|
||||||
uid: number
|
uid: number
|
||||||
username: string
|
username: string
|
||||||
nickname: string
|
nickname: string
|
||||||
@ -30,7 +30,7 @@ export interface Author {
|
|||||||
url: string
|
url: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Statistics {
|
export type Statistics = {
|
||||||
playCount: number
|
playCount: number
|
||||||
downloadCount: number
|
downloadCount: number
|
||||||
shareCount: number
|
shareCount: number
|
||||||
@ -43,7 +43,7 @@ export interface Statistics {
|
|||||||
loseCommentCount: number
|
loseCommentCount: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Music {
|
export type Music = {
|
||||||
id: number
|
id: number
|
||||||
title: string
|
title: string
|
||||||
author: string
|
author: string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user