| | |
| | | package com.ruoyi.project.system.service;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
| | | import com.baomidou.mybatisplus.extension.service.IService;
|
| | | import com.ruoyi.project.system.domain.SysNotice;
|
| | |
|
| | | /**
|
| | | * 公告 服务层
|
| | | * |
| | | *
|
| | | * @author ruoyi
|
| | | */
|
| | | public interface ISysNoticeService
|
| | | public interface ISysNoticeService extends IService<SysNotice>
|
| | | {
|
| | | /**
|
| | | * 查询公告信息
|
| | | * |
| | | *
|
| | | * @param noticeId 公告ID
|
| | | * @return 公告信息
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 查询公告列表
|
| | | * |
| | | *
|
| | | * @param notice 公告信息
|
| | | * @return 公告集合
|
| | | */
|
| | | public List<SysNotice> selectNoticeList(SysNotice notice);
|
| | | public IPage<SysNotice> selectNoticeList(SysNotice notice, Page page);
|
| | |
|
| | | /**
|
| | | * 新增公告
|
| | | * |
| | | *
|
| | | * @param notice 公告信息
|
| | | * @return 结果
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 修改公告
|
| | | * |
| | | *
|
| | | * @param notice 公告信息
|
| | | * @return 结果
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 删除公告信息
|
| | | * |
| | | *
|
| | | * @param noticeId 公告ID
|
| | | * @return 结果
|
| | | */
|
| | | public int deleteNoticeById(Long noticeId);
|
| | | |
| | |
|
| | | /**
|
| | | * 批量删除公告信息
|
| | | * |
| | | *
|
| | | * @param noticeIds 需要删除的公告ID
|
| | | * @return 结果
|
| | | */
|
| | | public int deleteNoticeByIds(Long[] noticeIds);
|
| | |
|
| | | Long getCount(Long consigneeId);
|
| | |
|
| | | int readAll();
|
| | |
|
| | | /**
|
| | | * 通过角色 发送提醒
|
| | | * @param title 标题
|
| | | * @param message 内容
|
| | | * @param needPushRoles 发送的角色
|
| | | * @param jumpPath 跳转地址
|
| | | */
|
| | | void simpleNoticeByRoles(final String title, final String message, final List<String> needPushRoles,
|
| | | final String jumpPath);
|
| | |
|
| | | /**
|
| | | * 通过权限 发送提醒
|
| | | * @param title 标题
|
| | | * @param message 消息
|
| | | * @param needPerms 发送的权限者 已包含上级
|
| | | * @param jumpPath 跳转地址
|
| | | */
|
| | | void simpleNoticeByPerms(final String title, final String message, final List<String> needPerms,
|
| | | final String jumpPath);
|
| | |
|
| | | /**
|
| | | * 通过指定人发送提醒
|
| | | * @param title 标题
|
| | | * @param message 消息
|
| | | * @param jumpPath 跳转地址
|
| | | */
|
| | | void simpleNoticeByUser(final String title, final String message, Long consigneeId,
|
| | | final String jumpPath);
|
| | |
|
| | | /**
|
| | | * 通过所有人 发送提醒
|
| | | * @param title 标题
|
| | | * @param message 消息
|
| | | * @param jumpPath 跳转地址
|
| | | */
|
| | | void simpleNoticeAll(final String title, final String message, final String jumpPath);
|
| | |
|
| | | void insertBatch(final List<SysNotice> notices);
|
| | | }
|