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.
16 lines
403 B
16 lines
403 B
import Http from '~~/utils/http';
|
|
import {PaginationVo, ResOptions} from "~~/api/types";
|
|
|
|
export default new class Case extends Http<ResOptions<any>> {
|
|
private readonly caseList = '/cases/lists'
|
|
private readonly caseInfo = '/cases/info'
|
|
|
|
getCaseList(params: PaginationVo) {
|
|
return this.get(this.caseList, params)
|
|
}
|
|
getCaseInfo(id: number) {
|
|
return this.get(this.caseInfo, {id})
|
|
}
|
|
|
|
}
|