Example #1
0
        public async Task <HandleResult> CascaderData([FromBody] JObject form)
        {
            string siteNum = form["siteNum"].ToStr();

            if (siteNum.IsEmpty())
            {
                return(HandleResult.Error("请选择站点"));
            }

            return(new HandleResult
            {
                IsSuccess = true,
                Data = await _service.GetCascaderData(siteNum)
            });
        }