feat(customer): support birthdate followup reminder

This commit is contained in:
Timi
2026-11-16 16:23:23 +08:00
parent 553de63cc7
commit 208fdde290
9 changed files with 687 additions and 350 deletions
+19
View File
@@ -4,9 +4,24 @@ import type { Customer } from "@/types/Customer";
/** 客户跟进提醒业务状态。 */
export type FollowUpReminderStatus = "PENDING" | "COMPLETED";
/** 客户跟进提醒来源。 */
export type FollowUpReminderSource = "MANUAL" | "SYSTEM";
/** 客户跟进提醒通知方式。 */
export type FollowUpReminderNotifyChannel = "INTERNAL" | "SMS";
/** 系统创建提醒的扩展信息快照。 */
export type FollowUpReminderMetadata = {
/** 业务类型,BIRTHDAY 为客户生日提醒 */
bizType?: string;
/** 生日对应的公历日期 */
birthdaySolar?: string;
/** 生日对应的农历月日,仅农历生日有值 */
birthdayLunar?: string;
/** true 为闰月,仅农历生日有值 */
leapMonth?: boolean;
};
/** 跟进提醒附件请求项。 */
export type FollowUpReminderAttachment = Partial<Attachment> & {
name?: string;
@@ -21,6 +36,10 @@ export type FollowUpReminder = {
content?: string;
remindAt?: number;
status?: FollowUpReminderStatus;
source?: FollowUpReminderSource;
/** 系统创建的幂等键,手动创建为空 */
sourceKey?: string;
metadata?: FollowUpReminderMetadata;
internalNotifyEnabled?: boolean;
smsNotifyEnabled?: boolean;
internalNotifyDetailId?: string;