/// <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))); }
/// <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)))); }
/// <summary> /// GET返回对象 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="url"></param> /// <returns></returns> public static T GetByJson <T>(string url) { return(Json.Deserialize <T>(Https.Get(url))); }