调用POST请求
/// <summary>
/// 实训登录
/// </summary>
/// <param name="userVo"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
public async Task<bool> Login(UserLoginVo userVo)
{
string result = "";
var dicQuery = new ConcurrentDictionary<string, string>();
dicQuery["name"] = "ddd";
var requestMessage = new RequestParameter
{
Headers = new ConcurrentDictionary<string, string>(),
Url = "https://www.tosofts.com/bo/api/v3/auth/login",
Body = JsonUtilText.Serialize(dicQuery, false, false, false),
Query = dicQuery,
ContentType = "application/json",
RequestEnCodingType = "utf8"
};
result = await HttpUtil.HttpAsync(_httpClientFactory, requestMessage, RequestMethod.POST);
//throw new NotImplementedException();
return true;
}
文档更新时间: 2023-04-05 16:10 作者:admin