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.
24 lines
666 B
24 lines
666 B
import type { BaseResponse } from "../httpRequest";
|
|
import httpRequest from "../httpRequest";
|
|
|
|
export type ExperienceStep = {
|
|
id: number;
|
|
startTime: string;
|
|
stepDescription: string;
|
|
};
|
|
|
|
export type ExperienceRecord = {
|
|
id: number;
|
|
name: string;
|
|
startTime: string;
|
|
createUser: number;
|
|
steps: ExperienceStep[];
|
|
};
|
|
|
|
export function getExperienceRecords(params: { pageNum: number; pageSize: number }) {
|
|
return httpRequest<BaseResponse<{ list: ExperienceRecord[]; total: number }>>({ url: "/api/tasks/list", params });
|
|
}
|
|
|
|
export function deleteExperienceRecords(ids: string) {
|
|
return httpRequest<BaseResponse>({ url: `/api/tasks/${ids}`, method: "DELETE" });
|
|
}
|