Example #1
0
 /// <summary>
 /// Post返回对象
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="url"></param>
 /// <returns></returns>
 public static T PostByJson <T>(string url, IPostEntity data)
 {
     return(Json.Deserialize <T>(Https.Post(url, Json.Serialize(data))));
 }
Example #2
0
 /// <summary>
 /// Post返回对象
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="url"></param>
 /// <returns></returns>
 public static T PostByJson <T>(string url, string data)
 {
     return(Json.Deserialize <T>(Https.Post(url, data)));
 }