feat(marketing-pages): add IPagesRepository + ISiteSettingsRepository interfaces
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { Page } from "../../entities/page";
|
||||
|
||||
export interface IPagesRepository {
|
||||
getPageBySlug(slug: string): Promise<Page | undefined>;
|
||||
getPages(options?: {
|
||||
status?: string;
|
||||
limit?: number;
|
||||
offset?: number;
|
||||
}): Promise<Page[]>;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import type { SiteSettings } from "../../entities/site-settings";
|
||||
|
||||
export interface ISiteSettingsRepository {
|
||||
getSiteSettings(): Promise<SiteSettings>;
|
||||
}
|
||||
Reference in New Issue
Block a user