从"Blog"仓库中分离出来

This commit is contained in:
小海
2019-11-28 19:26:45 +08:00
commit c2aaf280db
616 changed files with 104128 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
export class Article {
id: number;
title: string;
summary: string;
mdContent?: string;
original?: boolean;
url?: string;
publishDateFormat?: string;
updateDateFormat?: string;
category?: string;
tags?: string[];
authorName?: string;
preArticleId?: number;
nextArticleId?: number;
preArticleTitle?: string;
nextArticleTitle?: string;
readingNumber?: number;
open?: string;
}

View File

@@ -0,0 +1,6 @@
export class Category {
id: number;
name: string;
articles: string;
size?: number;
}

View File

@@ -0,0 +1,13 @@
export class Comment {
id: number;
type: number;
authorName: string;
authorAvatarImgUrl: string;
content: string;
date: string;
pid: number;
responseId: string;
articleID: number;
articleTitle: string;
child: Comment[];
}

View File

@@ -0,0 +1,19 @@
export class CommentReq {
articleID: number;
comment: boolean;
content: string;
id: number;
pid: number;
responseId: string;
constructor(comment: boolean) {
this.comment = comment;
this.responseId = '';
if (!comment) {
this.articleID = -1;
}
this.pid = -1;
this.id = null;
}
}

View File

@@ -0,0 +1,6 @@
export class Data {
code: number;
msg: string;
result: any;
date: number;
}

View File

@@ -0,0 +1,6 @@
export class Link {
id: number;
name: string;
url: string;
open: boolean;
}

View File

@@ -0,0 +1,20 @@
export class Page<T> {
total: number;
list: T[];
pageNum: number;
pageSize: number;
size: number;
startRow: number;
endRow: number;
pages: number;
prePage: number;
nextPage: number;
isFirstPage: boolean;
isLastPage: boolean;
hasPreviousPage: boolean;
hasNextPage: boolean;
navigatePages: number;
navigatepageNums: number[];
navigateFirstPage: number;
navigateLastPage: number;
}

View File

@@ -0,0 +1,6 @@
export class Tag {
id?: number;
name: string;
articles?: string;
size: number;
}

View File

@@ -0,0 +1,5 @@
export class UpdateInfo {
id: number;
info: string;
time: string;
}

View File

@@ -0,0 +1,11 @@
export class User {
id: number;
email: string;
displayName: string;
emailStatus: boolean;
avatarImgUrl: string;
recentlyLandedDate: string;
desc: string;
role: string;
pwd?: string;
}

View File

@@ -0,0 +1,9 @@
export class Visitor {
id: number;
ip: string;
date: string;
browserName: string;
browserVersion: string;
location?: string;
osname: string;
}