Exemple #1
0
        /// <summary>
        /// 获取数据
        /// </summary>
        /// <param name="search"></param>
        /// <returns></returns>
        public async Task <NarutoResult> GetClients(SearchClientModel search)
        {
            if (search == null)
            {
                return(new NarutoFailResult($"{nameof(search)}值不能为空"));
            }
            var res = await clientStorage.GetClients(search);

            return(new NarutoSuccessResult("操作成功", res.Item1, res.Item2));
        }