获取tj 医院tokenInfo
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
dcddf88a66
commit
ade2a25fc4
|
@ -22,6 +22,26 @@ namespace IRaCIS.Application.Contracts
|
|||
public Guid? UserId { get; set; }
|
||||
}
|
||||
|
||||
public class TJUserInfoDto
|
||||
{
|
||||
public string Code { get; set; }
|
||||
public string Msg { get; set; }
|
||||
public TJUserInfoData Data { get; set; }
|
||||
}
|
||||
|
||||
public class TJUserInfoData
|
||||
{
|
||||
public string UserCode { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string DeptCode { get; set; }
|
||||
public string Sex { get; set; }
|
||||
public string Birthday { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string UserType { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class LoginReturnDTO
|
||||
{
|
||||
public UserBasicInfo BasicInfo { get; set; } = new UserBasicInfo();
|
||||
|
|
|
@ -629,16 +629,30 @@ namespace IRaCIS.Core.Application.Service
|
|||
}
|
||||
|
||||
|
||||
[AllowAnonymous]
|
||||
public async Task<IResponseOutput> TJUserLoginInfo(string token)
|
||||
{
|
||||
//同济医院token 地址:http://192.168.40.88:8080 appid:third-hirs
|
||||
|
||||
//public async Task<IResponseOutput<LoginReturnDTO>> HospitalUserLogin(string token)
|
||||
//{
|
||||
// //同济医院token 地址:http://192.168.40.88:8080 appid:third-hirs
|
||||
//本地测试地址接口
|
||||
|
||||
// //本地测试地址接口
|
||||
var apiUrl = "http://192.168.40.88:8080/dock/userinfo";
|
||||
var headers = new Dictionary<string, string>
|
||||
{
|
||||
{ "Content-Type", "application/json" } // 根据需要添加其他头部信息
|
||||
};
|
||||
|
||||
// RestClientAPI.PostAsync<>
|
||||
var requestData = new
|
||||
{
|
||||
userToken = token,
|
||||
appId = "third-hirs",
|
||||
};
|
||||
|
||||
//}
|
||||
var tjUserInfo = await RestClientAPI.PostAsync<TJUserInfoDto>(apiUrl, requestData, headers);
|
||||
|
||||
|
||||
return ResponseOutput.Ok(tjUserInfo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue