feat: Implement News Info management features including CRUD operations and rich text editor
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
2026-07-20 15:43:50 +08:00
parent 4aa30fc59d
commit f2a81d8867
11 changed files with 1054 additions and 1 deletions

54
src/types/news-info.d.ts vendored Normal file
View File

@@ -0,0 +1,54 @@
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 };
}
}