예제 #1
0
        public async Task <IActionResult> CreateHospitalAsync([FromBody] encryData data)
        {
            var hospital = await _hospitalService.CreateHospitalAsync(data.HospitalData);

            if (hospital != null)
            {
                result.success    = true;
                result.returnData = hospital;
                result.returnMsg  = "创建医院成功!";
            }
            else
            {
                result.success   = false;
                result.returnMsg = "创建医院失败!";
            }
            return(Ok(result));
        }