Exemple #1
0
        public async Task <TData <List <UserEntity> > > GetPageListJson([FromBody] WebApi_TerInforListParam listParam)
        {
            TData <List <UserEntity> > obj = new TData <List <UserEntity> >();

            obj.SetDefault();
            try
            {
                LogHelper.Info("【GetPageListJson】 listParam:" + JsonHelper.SerializeObject(listParam));
                OperatorInfo opuser = await Web.Code.Operator.Instance.Current(listParam.ApiToken);

                obj = await userBLL.GetPageList(listParam.ListParam, listParam.Pagination, opuser, PlatformEnum.WebApi);
            }
            catch (Exception ex)
            {
                LogHelper.Info("【GetPageListJson】 ex:" + ex.ToString());
            }
            return(obj);
        }
Exemple #2
0
        public async Task <TData <List <TerInforEntity> > > GetPageListJson(
            WebApi_TerInforListParam param)
        {
            TData <List <TerInforEntity> > obj = new TData <List <TerInforEntity> >();

            try
            {
                OperatorInfo user = await Web.Code.Operator.Instance.Current(param.ApiToken);

                LogHelper.Info("GetPageListJson user:"******"GetPageListJson Data:" + JsonHelper.SerializeObject(obj));
            }
            catch (Exception ex)
            {
                LogHelper.Info("GetPageListJson ex:" + ex.ToString());
            }

            return(obj);
        }