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
55 lines
1.0 KiB
TypeScript
55 lines
1.0 KiB
TypeScript
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 };
|
|
}
|
|
}
|