标签:返回 mvc success data integer code tms object bsp
public class ResultUtil{
public static Result success(Object object){
Result result = new Result();
result.setCode(0);
result.setMsg("成功");
result.setData(object);
return result;
}
public static Result success(){
return success(null);
}
public static Result error(Integer code,String msg){
Result result = new Result();
result.setCode(code);
result.setMsg(msg);
result.setData(object);
return result;
}
}
标签:返回 mvc success data integer code tms object bsp
原文地址:http://www.cnblogs.com/chenweichu/p/6910667.html