UNPKG

@publish-cms/type

Version:
58 lines (57 loc) 1.28 kB
import { ICategory } from '../category'; import { ILink } from '../link'; import { IMedia } from '../media'; import { IUser } from '../user'; export declare class IPost { id?: string; title?: string; description?: string; content?: string; views?: number; mediaImage?: IMedia; seoTitle?: string; seoDescription?: string; seoKeyword?: string; sort?: number; type?: number; status?: number; hot?: boolean; deleted?: boolean; categories?: ICategory[]; createdAt?: string | Date; updatedAt?: string | Date; publishDate?: string | Date; authorId?: string; author?: IUser; mediaSeoImage?: IMedia; postMeta?: IPostMeta[]; category?: ICategory[]; link?: ILink; canComment?: boolean; related?: IPost[]; } export declare class IPostMeta { id: string; key?: string; value?: string; createdAt?: string | Date; updatedAt?: string | Date; post?: IPost; } export declare class IPostRelated { id: string; post: IPost; postRelated: IPost; } export declare class IPostRelationCategory { id: string; sort?: number; category: ICategory; post: IPost; } export declare enum EPostStatus { PUBLIC = 1, REVIEW = 2, TRASH = 3, DRAFT = 4 }