Files
energy_dist/dist/generated/api/generated_news.controller.d.ts
2026-04-21 22:34:39 +08:00

84 lines
2.6 KiB
TypeScript

import { PaginatedDto } from 'src/app/common/api';
import { Repository } from 'typeorm';
import { OrderBy } from '../../app/common/enum/order_by.enum';
import { Expression } from '../../app/common/enum/expression.enum';
import { NewsModel } from '../../model/news.model';
declare class GeneratedNewsFindOrderDto {
id?: OrderBy;
createTime?: OrderBy;
updateTime?: OrderBy;
deleteTime?: OrderBy;
categoryId?: OrderBy;
coverImage?: OrderBy;
video?: OrderBy;
title?: OrderBy;
content?: OrderBy;
publishTime?: OrderBy;
readCount?: OrderBy;
type?: OrderBy;
isRecommended?: OrderBy;
isHeadline?: OrderBy;
isShow?: OrderBy;
}
declare class GeneratedNewsFindRelationDto {
category?: boolean;
}
declare class GeneratedNewsFindExpressionDto {
id?: Expression;
createTime?: Expression;
updateTime?: Expression;
deleteTime?: Expression;
categoryId?: Expression;
coverImage?: Expression;
video?: Expression;
title?: Expression;
content?: Expression;
publishTime?: Expression;
readCount?: Expression;
type?: Expression;
isRecommended?: Expression;
isHeadline?: Expression;
isShow?: Expression;
}
declare class GeneratedNewsFindExtraDto {
expression: GeneratedNewsFindExpressionDto;
order: GeneratedNewsFindOrderDto[];
relations?: GeneratedNewsFindRelationDto;
}
declare class GeneratedNewsFindWhereDto {
id?: number;
createTime?: string;
updateTime?: string;
deleteTime?: string;
categoryId?: number;
coverImage?: string;
video?: string;
title?: string;
content?: string;
publishTime?: string;
readCount?: number;
type?: number;
isRecommended?: number;
isHeadline?: number;
isShow?: number;
}
declare class GeneratedNewsFindDto {
paginated?: PaginatedDto;
where?: GeneratedNewsFindWhereDto;
extra?: GeneratedNewsFindExtraDto;
}
declare const GeneratedNewsDetailWhereDto_base: import("@nestjs/common").Type<Partial<Omit<GeneratedNewsFindWhereDto, "id">>>;
declare class GeneratedNewsDetailWhereDto extends GeneratedNewsDetailWhereDto_base {
}
declare class GeneratedNewsDetailDto {
where: GeneratedNewsDetailWhereDto;
extra: GeneratedNewsFindExtraDto;
}
export declare class GeneratedNewsController {
private repos;
constructor(repos: Repository<NewsModel>);
list(dto: GeneratedNewsFindDto): Promise<import("src/app/common/api").ApiResponseVo<import("src/app/common/api").PaginatedVo<NewsModel[]>>>;
detail(id: number, dto: GeneratedNewsDetailDto): Promise<import("src/app/common/api").ApiResponseVo<NewsModel | null | undefined>>;
}
export {};