feat: 移除目标管理功能模块
删除了完整的目标管理功能,包括目标创建、编辑、任务管理等相关页面和组件。同时移除了相关的API服务、Redux状态管理、类型定义和通知功能。应用版本从1.0.20升级到1.0.21。
This commit is contained in:
@@ -526,7 +526,6 @@ export const notificationService = NotificationService.getInstance();
|
||||
// 预定义的推送通知类型
|
||||
export const NotificationTypes = {
|
||||
WORKOUT_REMINDER: 'workout_reminder',
|
||||
GOAL_ACHIEVEMENT: 'goal_achievement',
|
||||
MOOD_CHECKIN: 'mood_checkin',
|
||||
NUTRITION_REMINDER: 'nutrition_reminder',
|
||||
PROGRESS_UPDATE: 'progress_update',
|
||||
@@ -558,17 +557,7 @@ export const sendWorkoutReminder = (title: string, body: string, date?: Date) =>
|
||||
}
|
||||
};
|
||||
|
||||
export const sendGoalAchievement = (title: string, body: string) => {
|
||||
const notification: NotificationData = {
|
||||
title,
|
||||
body,
|
||||
data: { type: NotificationTypes.GOAL_ACHIEVEMENT },
|
||||
sound: true,
|
||||
priority: 'high',
|
||||
};
|
||||
|
||||
return notificationService.sendImmediateNotification(notification);
|
||||
};
|
||||
// sendGoalAchievement 函数已删除,因为目标功能已移除
|
||||
|
||||
export const sendMoodCheckinReminder = (title: string, body: string, date?: Date) => {
|
||||
const notification: NotificationData = {
|
||||
|
||||
Reference in New Issue
Block a user