register, login, create and manage sites and pages
This commit is contained in:
14
frontend/src/app/core/models/auth-response.ts
Normal file
14
frontend/src/app/core/models/auth-response.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface AuthResponse {
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
tokenType: string;
|
||||
user: UserInfo;
|
||||
}
|
||||
|
||||
export interface UserInfo {
|
||||
id: string;
|
||||
email: string;
|
||||
name: string;
|
||||
avatarUrl: string;
|
||||
provider: 'LOCAL' | 'GOOGLE' | 'GITHUB' | 'OPENID';
|
||||
}
|
||||
18
frontend/src/app/core/models/page.ts
Normal file
18
frontend/src/app/core/models/page.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export interface PageResponse {
|
||||
id: string;
|
||||
siteId: string;
|
||||
title: string;
|
||||
slug: string;
|
||||
seoTitle: string;
|
||||
seoDescription: string;
|
||||
orderIndex: number;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface PageRequest {
|
||||
title: string;
|
||||
slug: string;
|
||||
seoTitle?: string;
|
||||
seoDescription?: string;
|
||||
orderIndex: number;
|
||||
}
|
||||
19
frontend/src/app/core/models/site.ts
Normal file
19
frontend/src/app/core/models/site.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
export interface SiteResponse {
|
||||
id: string;
|
||||
userId: string;
|
||||
name: string;
|
||||
description: string;
|
||||
subdomain: string;
|
||||
themeConfig: Record<string, unknown>;
|
||||
status: 'DRAFT' | 'PUBLISHED';
|
||||
publishedAt: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface SiteRequest {
|
||||
name: string;
|
||||
description: string;
|
||||
subdomain: string;
|
||||
themeConfig?: Record<string, unknown>;
|
||||
}
|
||||
Reference in New Issue
Block a user