You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
922 B

import Http from '~~/utils/http';
import {InformationDto, PaginationDto, ResOptions} from "~~/api/types";
export default new class AboutApi extends Http<ResOptions<PaginationDto<InformationDto>>> {
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})
}
}