import Http from '~~/utils/http'; import {InformationDto, PaginationDto, ResOptions} from "~~/api/types"; export default new class AboutApi extends Http>> { private readonly prefix = '/index' private readonly hotNews = '/hotInformation' private readonly hotTechnical = '/hotTechnical' private readonly hotCase = '/hotCase' private readonly hotTs = '/hotTs' getHotNewsInfo(page: number, limit: number) { return this.get(this.contact(this.prefix, this.hotNews), {page, limit}) } getHotTechnical(page: number, limit: number) { return this.get(this.contact(this.prefix, this.hotTechnical), {page, limit}) } getHotCase(page: number, limit: number) { return this.get(this.contact(this.prefix, this.hotCase), {page, limit}) } getHotTs(page: number, limit: number) { return this.get(this.contact(this.prefix, this.hotTs), {page, limit}) } }