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.

20 lines
584 B

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