/// <summary> /// 消息变为已读 /// </summary> /// <param name="msgid"></param> public void Read(ReadMsgReq req) { UnitWork.Update <SysMessage>(u => u.Id == req.Id, u => new SysMessage { ToStatus = 1 }); }
public Response Read(ReadMsgReq obj) { var result = new Response(); try { _app.Read(obj); } catch (Exception ex) { result.Code = 500; result.Message = ex.InnerException?.Message ?? ex.Message; } return(result); }
public string Read(ReadMsgReq obj) { var result = new Response(); try { _app.Read(obj); } catch (Exception ex) { result.Code = 500; result.Message = ex.InnerException?.Message ?? ex.Message; } return(JsonHelper.Instance.Serialize(result)); }