从"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,11 @@
export class LeaveMsg {
id: number;
type: number;
authorName: string;
authorAvatarImgUrl: string;
content: string;
date: string;
pid: number;
responseId: string;
child: LeaveMsg[];
}

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,14 @@
export class ArticleReq {
category: string;
id?: number;
mdContent: string;
open: boolean;
tags: string;
title: string;
type: boolean;
url?: string;
constructor() {
this.type = true;
}
}

View File

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

View File

@@ -0,0 +1,18 @@
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,7 @@
export class Count {
visitorCount: number = 0;
leaveMsgCount: number = 0;
tagCount: number = 0;
articleCount: number = 0;
commentCount: number = 0;
}

View File

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

View File

@@ -0,0 +1,30 @@
import {environment} from '../../environments/environment';
export class EditorConfig {
public width = '100%';
public height = '400';
public path = 'assets/editor.md/lib/';
public codeFold: true;
public searchReplace = true;
public toolbar = true;
public placeholder = '欢迎来到小海的创作中心';
public emoji = true;
public taskList = true;
public tex = true;
public readOnly = false;
public tocm = true;
public watch = true;
public previewCodeHighlight = true;
public saveHTMLToTextarea = true;
public markdown = '';
public flowChart = true;
public syncScrolling = true;
public sequenceDiagram = true;
public imageUpload = true;
public imageFormats = ['jpg', 'jpeg', 'gif', 'png', 'bmp', 'webp'];
public imageUploadURL = environment.host + '/imgUpload';
constructor() {
}
}

View File

@@ -0,0 +1,5 @@
export class LoginReq {
email: string;
password: string;
isRememberMe: boolean = false;
}

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,9 @@
export class User {
id: number;
email: string;
displayName: string;
emailStatus: boolean;
avatarImgUrl: string;
desc: string;
role: string;
}