Beispiel #1
0
        /// <summary>
        /// 搜索表情包
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public List <EmoticonsDto> SearchEmoticons(SearchEmoticonsReq req)
        {
            var emoticon = GetEmoticonsEFResult(req.Nodeid, req.Typeid).Where(c => c.Name.Contains(req.EmoticonName)).ToPagedList(req.PageNum, req.PageSize).ToList();

            AddDarenSearch(req.EmoticonName);
            return(emoticon);
        }
        public Respbase <List <EmoticonsDto> > SearchEmoticons(SearchEmoticonsReq req)
        {
            EmoticonFacade facade = new EmoticonFacade();
            var            result = facade.SearchEmoticons(req);

            if (result != null)
            {
                return(new Respbase <List <EmoticonsDto> > {
                    Result = 1, Message = "获取成功", Data = result
                });
            }
            return(new Respbase <List <EmoticonsDto> > {
                Result = facade.PromptInfo.Result, Message = facade.PromptInfo.Message, Data = null
            });
        }