28 Star 542 Fork 146

coderlei/markdown2pdf

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
type.d.ts 2.62 KB
一键复制 编辑 原始数据 按行查看 历史
coderlei 提交于 2023-06-23 20:29 +08:00 . refactor: 类型文件路径调整
export interface IUser {
username: string
password: string
verify: string
}
export interface IResponse<T> {
code: number
msg: string
data?: T
total?: number
commentsTotal?: number
}
export interface ICommunityArticle {
title: string
content: string
professional: string
authorId: number
}
export interface ICommunityArticleUpdate {
title: string
content: string
professional: string
introduce: string
articleId: number
}
export interface ICommunityCondition {
pageNum: number
pageSize: number
tab: number
uid: number
professional: string
keyword: string
}
export interface ICommunityLike {
articleId: number
userId: number
}
export interface IUserInfo {
uid: number
nickName: string
username: string
sex: string
professional: string
graduation: string
school: string
avatar: string
origin: string
createTime?: string
updateTime?: string
}
export interface IArticle {
title: string
content: string
professional: string
authorId: number
likes: number[]
commentTotal: number
hot: number
createTime: string
updateTime: string
articleId: number
introduce: string
authorInfo: IUserInfo
}
export interface ICommentReply {
commentId: number
articleId: number
authorId: number
authorInfo: IUserInfo
content: string
images: string
level: number
createTime: string
posterCommentId: number
replyNickName: string
}
export interface IComment {
commentId: number
articleId: number
content: string
images: string
authorId: number
authorInfo: IUserInfo
level: number
createTime: string
children: ICommentReply[]
}
export interface IPublishComment {
content: string
articleId: number
level: number
authorId: number
replyArticleAuthorId: number
}
export interface IPublishCommentReply {
content: string
articleId: number
level: number
authorId: number
posterCommentId: number
replyAuthorId: number
replyArticleAuthorId: number
}
export interface IArticleDetail {
title: string
content: string
professional: string
authorId: number
like: number
hot: number
createTime: string
updateTime: string
articleId: number
introduce: string
authorInfo: IUserInfo
comments: IComment[]
}
export interface INotificationList {
read: number
articleId: number
commentId: number
replyCommentId: number
posterCommentId: number
commentContent: { content: string; createTime: string }
commentUserInfo: IUserInfo
replyContent: { content?: string; title?: string; createTime: string }
replyUserInfo: IUserInfo
}
export interface ICommentPosition {
pageNum: number
position: number
data: IComment[]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/codeleilei/markdown2pdf.git
git@gitee.com:codeleilei/markdown2pdf.git
codeleilei
markdown2pdf
markdown2pdf
master

搜索帮助