Ejemplo n.º 1
0
        // GET: /WebForbidWordMsg/

        #region 禁词列表
        public ActionResult Index(WordMsgRefer wordMsg)
        {
            var result = new WordMsgRefer();

            result = ForbidWordMsgClient.Instance.QueryGetWordMsg(wordMsg);
            return(View(result));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 禁词列表
        /// </summary>
        /// <returns></returns>
        public WordMsgRefer QueryGetWordMsg(WordMsgRefer wordMsg)
        {
            var result = new WordMsgRefer();
            var req    = new QueryWebForbidWordMessageRequest();

            if (wordMsg.SearchDetail != null)
            {
                req.VchForbidWord = wordMsg.SearchDetail.VchForbidWord;
                req.IntWordType   = wordMsg.SearchDetail.IntWordType;
            }
            req.PageIndex = wordMsg.PageIndex.GetValueOrDefault();;
            req.PageSize  = wordMsg.PageSize.GetValueOrDefault();;

            var res = BSClient.Send <QueryWebForbidWordMessageResponse>(req);

            if (res.DoFlag)
            {
                result.List  = Mapper.MappGereric <Web_Forbid_Word_MessageExt, WordMsgDetail>(res.ForbidWordDos);
                result.Total = res.Total;
            }
            result.SearchDetail = wordMsg.SearchDetail;
            result.PageIndex    = wordMsg.PageIndex;
            result.PageSize     = wordMsg.PageSize;
            return(result);
        }