update type Post

parent e9f9bbc1
import { type } from 'os';
export type PaginationResponse<DataType> = {
pageIndex: null | number;
pageSize: null | number;
......@@ -325,3 +327,39 @@ export type Post = {
updateTime: string;
status: number;
};
export type LanguageType = {
id: number;
code: string;
name: string;
status: number;
};
export type LangType = {
id: number;
name: string;
title: string;
content: string;
status: number;
language: LanguageType;
};
export type CategoryPostType = {
id: number;
image: string;
status: number;
name: string;
title: string;
};
export type PostDetailType = {
id: number;
image: string;
status: number;
langs: LangType[];
category: CategoryPostType;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment