feat(ADM-018): completed feature
This commit is contained in:
23
project/src/modules/cms/domain/page.ts
Normal file
23
project/src/modules/cms/domain/page.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
export type PageStatus = 'draft' | 'published';
|
||||
|
||||
export interface Page {
|
||||
id: string;
|
||||
slug: string;
|
||||
title: string;
|
||||
body: string;
|
||||
status: PageStatus;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
export interface CreatePageInput {
|
||||
slug: string;
|
||||
title: string;
|
||||
body: string;
|
||||
}
|
||||
|
||||
export interface UpdatePageInput {
|
||||
slug?: string;
|
||||
title?: string;
|
||||
body?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user