using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Util.HttpUtil
{
public sealed class NewEmp
{
///
/// 同步数据
///
/// 没有特殊说明,传入
public static ResponseMode PostMethodToObj(string url, string jsonObj)
{
try
{
return HttpUtil.PostUtil.PostUrl(url, jsonObj);
}
catch (Exception)
{
throw;
//return JsonConvert.SerializeObject(new ResponseMode{ code = "-1", errorMsg = "非法操作." });
}
}
///
/// 同步数据
///
public static ResponseMode GetUrl(string url)
{
try
{
return HttpUtil.GetUtil.GetJson(url);
}
catch (Exception)
{
throw;
//return JsonConvert.SerializeObject(new ResponseMode{ code = "-1", errorMsg = "非法操作." });
}
}
///
/// 新的响应对象
///
public class ResponseMode
{
public int ret;
public string msg;
// public data data;
}
}
}