import { Component, Request } from '@pjblog/http'; import { ArticleDBO } from '../dbos/article'; import { TArticleRaw } from '../types'; import { Markdown } from '@pjblog/markdown'; import type { EntityManager } from 'typeorm'; interface IAritlcesRaw extends TArticleRaw { summary_html: string; } export interface IArticlesControllerResponse { total: number; dataSource: any[]; tag: string; category: string; } export declare class ArticlesController extends Component { readonly manager: EntityManager; readonly service: ArticleDBO; readonly category: CategoryDBO; readonly tag: TagDBO; readonly configs: Configs; readonly markdown: Markdown; constructor(req: Request); getCurrentCategory(): Promise; getCurrentTag(): Promise; createRunner(): Promise>; getPageAndSize(): Promise; getList(): Promise; formatArticles(): Promise<{ id: number; code: string; title: string; cover: string; ctime: string; mtime: string; readCount: number; summary: string; category: { id: number; name: string; }; tags: { id: number; name: string; }[]; user: { id: number; account: string; nickname: string; avatar: string; level: number; }; }[]>; render(): Promise; } import { CategoryDBO } from '../../category/dbos/category'; import { TagDBO } from '../../tags/dbos/tags'; import { Configs } from '../../configs/service'; export {};