71 lines
2.1 KiB
Java
71 lines
2.1 KiB
Java
package com.vetti.hotake.service;
|
|
|
|
import java.util.List;
|
|
import com.vetti.hotake.domain.HotakeNotificationPreferences;
|
|
|
|
/**
|
|
* 用户通知偏好设置Service接口
|
|
*
|
|
* @author vetti
|
|
* @date 2026-02-01
|
|
*/
|
|
public interface IHotakeNotificationPreferencesService
|
|
{
|
|
/**
|
|
* 查询用户通知偏好设置
|
|
*
|
|
* @param id 用户通知偏好设置主键
|
|
* @return 用户通知偏好设置
|
|
*/
|
|
public HotakeNotificationPreferences selectHotakeNotificationPreferencesById(Long id);
|
|
|
|
/**
|
|
* 查询用户通知偏好设置列表
|
|
*
|
|
* @param hotakeNotificationPreferences 用户通知偏好设置
|
|
* @return 用户通知偏好设置集合
|
|
*/
|
|
public List<HotakeNotificationPreferences> selectHotakeNotificationPreferencesList(HotakeNotificationPreferences hotakeNotificationPreferences);
|
|
|
|
/**
|
|
* 新增用户通知偏好设置
|
|
*
|
|
* @param hotakeNotificationPreferences 用户通知偏好设置
|
|
* @return 结果
|
|
*/
|
|
public HotakeNotificationPreferences insertHotakeNotificationPreferences(HotakeNotificationPreferences hotakeNotificationPreferences);
|
|
|
|
/**
|
|
* 修改用户通知偏好设置
|
|
*
|
|
* @param hotakeNotificationPreferences 用户通知偏好设置
|
|
* @return 结果
|
|
*/
|
|
public HotakeNotificationPreferences updateHotakeNotificationPreferences(HotakeNotificationPreferences hotakeNotificationPreferences);
|
|
|
|
/**
|
|
* 批量删除用户通知偏好设置
|
|
*
|
|
* @param ids 需要删除的用户通知偏好设置主键集合
|
|
* @return 结果
|
|
*/
|
|
public int deleteHotakeNotificationPreferencesByIds(Long[] ids);
|
|
|
|
/**
|
|
* 删除用户通知偏好设置信息
|
|
*
|
|
* @param id 用户通知偏好设置主键
|
|
* @return 结果
|
|
*/
|
|
public int deleteHotakeNotificationPreferencesById(Long id);
|
|
|
|
/**
|
|
* 获取当前登录用户的通知偏好设置
|
|
* 如果不存在则自动创建默认设置
|
|
*
|
|
* @param username 用户名
|
|
* @return 用户通知偏好设置
|
|
*/
|
|
public HotakeNotificationPreferences getCurrentUserPreferences(String username);
|
|
}
|