update AIChart, customer followup, media selector
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user