Files
shz-admin/src/types/news-info.d.ts

55 lines
1.0 KiB
TypeScript
Raw Normal View History

declare namespace API.NewsInfo {
export interface NewsInfoItem {
id: number;
module: string;
moduleName?: string;
title: string;
content?: string;
status: '0' | '1';
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
}
export interface NewsInfoPayload {
id?: number;
module: string;
title: string;
content: string;
status?: '0' | '1';
remark?: string;
}
export interface NewsInfoListParams {
pageNum?: number;
pageSize?: number;
title?: string;
keyword?: string;
module?: string;
status?: '0' | '1';
}
export interface NewsInfoPageResult {
code: number;
msg?: string;
total: number;
rows: NewsInfoItem[];
}
export interface NewsInfoDetailResult {
code: number;
msg?: string;
data: NewsInfoItem;
}
export interface NewsInfoUploadResult {
code: number;
msg?: string;
url?: string;
fileName?: string;
data?: { url?: string; fileName?: string };
}
}