feat: add job seeker notice settings API

This commit is contained in:
2026-07-22 20:29:59 +08:00
parent 0dc3ff96fc
commit c8c70652ac
13 changed files with 546 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.AppUserNoticeSettingMapper">
<insert id="upsert" parameterType="AppUserNoticeSetting">
INSERT INTO app_user_notice_setting
(user_id, job_update_enabled, appointment_reminder_enabled,
system_notification_enabled, interview_notification_enabled,
create_time, update_time, del_flag)
VALUES
(#{userId}, #{jobUpdateEnabled}, #{appointmentReminderEnabled},
#{systemNotificationEnabled}, #{interviewNotificationEnabled},
NOW(), NOW(), '0')
ON CONFLICT (user_id) DO UPDATE
SET job_update_enabled = EXCLUDED.job_update_enabled,
appointment_reminder_enabled = EXCLUDED.appointment_reminder_enabled,
system_notification_enabled = EXCLUDED.system_notification_enabled,
interview_notification_enabled = EXCLUDED.interview_notification_enabled,
update_time = NOW(),
del_flag = '0'
</insert>
</mapper>