mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 15:25:50 +00:00
60 lines
1.1 KiB
TypeScript
60 lines
1.1 KiB
TypeScript
export interface SnsLivePhoto {
|
||
url: string
|
||
thumb: string
|
||
token?: string
|
||
key?: string
|
||
encIdx?: string
|
||
}
|
||
|
||
export interface SnsMedia {
|
||
url: string
|
||
thumb: string
|
||
md5?: string
|
||
token?: string
|
||
key?: string
|
||
encIdx?: string
|
||
livePhoto?: SnsLivePhoto
|
||
}
|
||
|
||
export interface SnsCommentEmoji {
|
||
url: string
|
||
md5: string
|
||
width: number
|
||
height: number
|
||
encryptUrl?: string
|
||
aesKey?: string
|
||
}
|
||
|
||
export interface SnsComment {
|
||
id: string
|
||
nickname: string
|
||
content: string
|
||
refCommentId: string
|
||
refNickname?: string
|
||
emojis?: SnsCommentEmoji[]
|
||
}
|
||
|
||
export interface SnsPost {
|
||
id: string
|
||
tid?: string // 数据库主键(雪花 ID),用于精确删除
|
||
username: string
|
||
nickname: string
|
||
avatarUrl?: string
|
||
createTime: number
|
||
contentDesc: string
|
||
type?: number
|
||
media: SnsMedia[]
|
||
likes: string[]
|
||
comments: SnsComment[]
|
||
rawXml?: string
|
||
linkTitle?: string
|
||
linkUrl?: string
|
||
isProtected?: boolean // 是否受保护(已安装时标记)
|
||
}
|
||
|
||
export interface SnsLinkCardData {
|
||
title: string
|
||
url: string
|
||
thumb?: string
|
||
}
|