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

25 lines
525 B
TypeScript

import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";
type Result = {
msg: any;
success: boolean;
data?: {
person?: Array<any>;
car?: Array<any>;
};
};
type Data = {
success: boolean;
msg: any;
count: number;
results?: Array<any>;
};
export const getPicList = (params?: object) => {
return http.request<Result>("get", baseUrlApi("tps/pics"), { params });
};
export const getTPList = (params?: object) => {
return http.request<Data>("get", baseUrlApi("tps"), { params });
};