From 69216ae75d81504ee96308038b7bd698e5d177a6 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 1 Apr 2025 16:06:53 +0800 Subject: [PATCH] =?UTF-8?q?HIR=20=E5=90=8C=E6=B5=8E=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Management/UserService.cs | 64 ++++++++++--------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs index a5e3fdd24..17aa1a250 100644 --- a/IRaCIS.Core.Application/Service/Management/UserService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserService.cs @@ -644,43 +644,47 @@ namespace IRaCIS.Core.Application.Service [FromServices] IRepository _hirHospitalRepository) { #region MyRegion - ////同济医院token 地址:http://192.168.40.88:8080 appid:third-hirs + //同济医院token 地址:http://192.168.40.88:8080 appid:third-hirs - ////本地测试地址接口 + //本地测试地址接口 - //var apiUrl = "http://192.168.40.88:8080/dock/userinfo"; - //var headers = new Dictionary - //{ - // { "Content-Type", "application/json" } // 根据需要添加其他头部信息 - //}; + var apiUrl = "http://192.168.40.88:8080/dock/userinfo"; + var headers = new Dictionary + { + { "Content-Type", "application/json" } // 根据需要添加其他头部信息 + }; - //var requestData = new - //{ - // token = token, - // appId = "third-hirs", - //}; + var requestData = new + { + token = token, + appId = "third-hirs", + }; - //var tjUserInfo = await RestClientAPI.PostAsync(apiUrl, requestData, headers); + var tjUserInfo = await RestClientAPI.PostAsync(apiUrl, requestData, headers); #endregion + #region 测试数据 + + //var tjUserInfo = new TJUserInfoDto + //{ + // Code = "200", + // Msg = "操作成功", + // Success = true, + // Data = new TJUserInfoData + // { + // UserCode = "YS10138", + // UserName = "胡学梅", + // DeptCode = "2121", + // Sex = "未知", + // Birthday = "", + // Title = "", + // UserType = "doctor", + // Roles = new List { "pm", "crc" } + // } + //}; + + #endregion - var tjUserInfo = new TJUserInfoDto - { - Code = "200", - Msg = "操作成功", - Success = true, - Data = new TJUserInfoData - { - UserCode = "YS101389", - UserName = "胡学梅", - DeptCode = "2121", - Sex = "未知", - Birthday = "", - Title = "", - UserType = "doctor", - Roles = new List { "PM", "CRC", "CRC", "PI", "QA", "Other" } - } - }; var generateRoles = new List() { "PM", "CRC", "SR", "PI", "QA" };