update AIChart, customer followup, media selector

This commit is contained in:
Timi
2026-09-18 17:38:55 +08:00
parent c6b398fa98
commit 57c4275a23
57 changed files with 3866 additions and 2071 deletions
+44
View File
@@ -0,0 +1,44 @@
import { axios } from "timi-web-api";
import type { PageResult } from "timi-web-api";
import type {
FollowUpReminder,
FollowUpReminderPage,
FollowUpReminderPayload
} from "@/types/FollowUpReminder";
const BASE_URI = "/gao/customer/follow-up-reminder";
/** 客户跟进提醒接口。 */
const FollowUpReminderAPI = {
async list(page: FollowUpReminderPage): Promise<PageResult<FollowUpReminder>> {
return await axios.post(`${BASE_URI}/list`, page);
},
async detail(id: string): Promise<FollowUpReminder> {
return await axios.post(`${BASE_URI}/detail`, undefined, {
params: { id }
});
},
async create(payload: FollowUpReminderPayload): Promise<string> {
return await axios.post(`${BASE_URI}/create`, payload);
},
async update(payload: FollowUpReminderPayload): Promise<void> {
return await axios.post(`${BASE_URI}/update`, payload);
},
async complete(id: string): Promise<void> {
return await axios.post(`${BASE_URI}/complete`, undefined, {
params: { id }
});
},
async remove(id: string): Promise<void> {
return await axios.post(`${BASE_URI}/delete`, undefined, {
params: { id }
});
}
};
export default FollowUpReminderAPI;