Beispiel #1
0
        /// <summary>
        /// 根据通知ID查询通知详情
        /// </summary>
        /// <param name="input_param"></param>
        /// <param name="output"></param>
        /// <param name="errMsg"></param>
        /// <param name="method"></param>
        /// <returns></returns>
        public bool SearchNoticeDetailsByNoticeId(inFindDetailsNotice input_param, ref ReturnNoticeAddDto output, ref string errMsg, RequestMethod method)
        {
            bool result = HttpCommonMethod <inFindDetailsNotice, ReturnNoticeAddDto>("/notifications/group/get", method, input_param, ref output, ref errMsg);

            if (result && output.result == (int)GlobalVariable.Result.Failure)
            {
                errMsg = string.IsNullOrEmpty(output.errorCode) ? "添加通知失败" : resources.GetString("E_" + output.errorCode);
                return(false);
            }
            return(result);
        }
Beispiel #2
0
        /// <summary>
        /// 添加通知
        /// </summary>
        /// <param name="input_param"></param>
        /// <param name="output"></param>
        /// <param name="errMsg"></param>
        /// <returns></returns>
        public bool AddNotice(NoticeAddDto input_param, ref ReturnNoticeAddDto output, ref string errMsg)
        {
            bool result = HttpCommonMethod <NoticeAddDto, ReturnNoticeAddDto>("/notifications/group/add", GlobalVariable.RequestMethod.POST, input_param, ref output, ref errMsg);

            if (result && output.result == (int)GlobalVariable.Result.Failure)
            {
                errMsg = string.IsNullOrEmpty(output.errorCode) ? "添加通知失败" : resources.GetString("E_" + output.errorCode);
                return(false);
            }
            return(result);
        }