using Edu.Model.Entity.Log;
using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB;
using VT.Repository;
namespace Edu.Module.Log
{
///
/// 系统日志处理类
///
public class LogModule
{
///
/// 系统消息仓储层对象
///
private readonly RB_MsgLogRepository msgLogRepository = new RB_MsgLogRepository();
///
/// 获取消息推送列表
///
///
///
public List GetMsgLogListModule(RB_MsgLog query)
{
return msgLogRepository.GetMsgLogListRepository(query);
}
///
/// 更新消息阅读状态
///
///
///
public virtual bool SetMsgReadModule(List ids)
{
bool flag = true;
Dictionary fileds = new Dictionary()
{
{nameof(RB_MsgLog.IsRead),1 }
};
foreach (var item in ids)
{
if (item > 0 && flag)
{
flag= msgLogRepository.Update(fileds, new WhereHelper(nameof(RB_MsgLog.Id), item));
}
}
return flag;
}
}
}