コード例 #1
0
        public IActionResult GetHiddenTJ()
        {
            var resultCountModel = new RespResultCountViewModel();

            try
            {
                var data = _statisticalService.GetHiddenTJ();
                if (data == null)
                {
                    resultCountModel.data = new Array[0];
                }
                else
                {
                    resultCountModel.data = data;
                }
                resultCountModel.code = 0;
                resultCountModel.msg  = "成功";
                return(Ok(resultCountModel));
            }
            catch (Exception ex)
            {
                resultCountModel.code = -1;
                resultCountModel.msg  = "操作失败:" + ex.ToString();
                return(Ok(resultCountModel));
            }
        }