import Http from '~~/utils/http'; import {InformationDto, PaginationDto, ResOptions} from "~~/api/types"; export default new class InformationApi extends Http> { private readonly infomation = '/infomation/info' private readonly infomationCate = '/infomation/cate' private readonly infomationLists = '/infomation/lists' getInformationDetail(id:string) { return this.get(this.infomation, {id}) } getInformationCate() { return this.get(this.infomationCate) } getInformationList(data:any) { return this.get(this.infomationLists, data) } }