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();
|
}
|
}
|
}
|