public async void SaveFeedBackNotice() { try { if (FeedbackContent == "") { _commonFun.AlertLongText("请填写反馈内容"); return; } FeedBackInfoDto dto = new FeedBackInfoDto() { NoticeId = NoticeListInfoDto.NoticeId, ReplyContent = FeedbackContent, Status = "S", UserId = int.Parse(CommonContext.Account.UserId), list = CaseAttachList }; _commonFun.ShowLoading("保存中..."); var result = await _notifiMngService.SaveFeedBackNotice(dto); if (result != null) { if (result.ResultCode == ResultType.Success) { //跳转或刷新CaseIndexViewModel MessagingCenter.Send <string>("", MessageConst.NOTICE_FEEDBACKDATA_GET); MessagingCenter.Send <string>("", MessageConst.NOTIFI_SAVEREFRESH_GO); MessagingCenter.Send <string>("", "MessagePageReSearch");// 给消息页发消息 await Navigation.PopAsync(true); _commonFun.AlertLongText("保存成功"); } else { _commonFun.AlertLongText(result.Msg); } } else { _commonFun.AlertLongText("保存时服务出现错误,,请重试"); } } catch (OperationCanceledException) { _commonFun.HideLoading(); _commonFun.AlertLongText("请求超时,请重试"); } catch (Exception) { _commonFun.HideLoading(); } finally { _commonFun.HideLoading(); } }
public async Task <APIResult> SaveFeedBackNotice(FeedBackInfoDto dto) { APIResult info = await _commonHelper.HttpPOST <APIResult>(baseUrl, _config.Get <string>($"{Config.Config.Endpoints_Paths}.SaveFeedBackNotice"), dto); return(info); }
public Task <APIResult> SaveFeedBackNotice([FromBody] FeedBackInfoDto param) { return(_notifiFeedBService.SaveFeedBackNotice(param.NoticeId, param.UserId, param.ReplyContent, param.Status, param.list)); }