HIR 同济对接接口完成
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
309ea7b1d1
commit
69216ae75d
|
@ -644,43 +644,47 @@ namespace IRaCIS.Core.Application.Service
|
||||||
[FromServices] IRepository<HIRHospital> _hirHospitalRepository)
|
[FromServices] IRepository<HIRHospital> _hirHospitalRepository)
|
||||||
{
|
{
|
||||||
#region MyRegion
|
#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 apiUrl = "http://192.168.40.88:8080/dock/userinfo";
|
||||||
//var headers = new Dictionary<string, string>
|
var headers = new Dictionary<string, string>
|
||||||
//{
|
{
|
||||||
// { "Content-Type", "application/json" } // 根据需要添加其他头部信息
|
{ "Content-Type", "application/json" } // 根据需要添加其他头部信息
|
||||||
//};
|
};
|
||||||
|
|
||||||
//var requestData = new
|
var requestData = new
|
||||||
//{
|
{
|
||||||
// token = token,
|
token = token,
|
||||||
// appId = "third-hirs",
|
appId = "third-hirs",
|
||||||
//};
|
};
|
||||||
|
|
||||||
//var tjUserInfo = await RestClientAPI.PostAsync<TJUserInfoDto>(apiUrl, requestData, headers);
|
var tjUserInfo = await RestClientAPI.PostAsync<TJUserInfoDto>(apiUrl, requestData, headers);
|
||||||
#endregion
|
#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<string> { "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<string> { "PM", "CRC", "CRC", "PI", "QA", "Other" }
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var generateRoles = new List<string>() { "PM", "CRC", "SR", "PI", "QA" };
|
var generateRoles = new List<string>() { "PM", "CRC", "SR", "PI", "QA" };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue