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
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:
54
src/types/news-info.d.ts
vendored
Normal file
54
src/types/news-info.d.ts
vendored
Normal 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 };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user