admin
2022-05-06 8cc3c660bdaaaa6a46eecadb78e4e9c17a07c227
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
package com.yeshi.makemoney.app.service.impl.msg;
 
import com.yeshi.makemoney.app.entity.msg.UserMsg;
import com.yeshi.makemoney.app.service.inter.msg.UserMsgNotifyService;
import com.yeshi.makemoney.app.service.inter.msg.UserMsgService;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
 
/**
 * @author hxh
 * @title: UserMsgNotifyServiceImpl
 * @description: 用户消息通知
 * @date 2022/4/24 12:00
 */
@Service
public class UserMsgNotifyServiceImpl implements UserMsgNotifyService {
 
    @Resource
    private UserMsgService userMsgService;
 
    @Override
    public void notify(UserMsg userMsg) {
        //推送站外消息
        try {
            userMsgService.add(userMsg);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}