xiangpei
2024-07-15 daec4b1d2cce358233109fb282aa4d5be31da559
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.mindskip.xzs.repository;
 
import com.mindskip.xzs.domain.Notify;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * @author:xp
 * @date:2024/7/15 14:36
 */
@Mapper
public interface NotifyMapper {
 
    /**
     * 添加
     *
     * @param notify
     */
    void add(Notify notify);
 
    /**
     * 查询通知我的
     *
     * @return
     */
    List<Notify> notifyMeList(@Param("userId") Integer userId);
 
    /**
     * 设置为已读
     *
     * @param ids
     */
    void setHasRead(@Param("ids") List<Integer> ids);
 
    /**
     * 管理员通知列表
     *
     * @return
     */
    List<Notify> adminNotifyList();
}