@@ -0,0 +1,1366 @@
+package org.javaosc.galaxy.constant;%0A%0Aimport java.io.Serializable;%0A%0Aimport org.javaosc.galaxy.assist.ServiceException;%0A/**%0A * %0A * @description%0A * @author Dylan Tao%0A * @date 2014-09-09 Copyright 2014 Javaosc Team. All Rights Reserved.%0A */%0Apublic class Result%3CT%3E implements Serializable %7B%0A%09%0A%09private static final long serialVersionUID = -2586624936313267449L;%0A%09%0A%09private long code;%0A%09private String message;%0A%09private T result;%0A%0A%09public Result(Exception e) %7B%0A%09   ServiceException se = (ServiceException)e;%0A%09   this.code = se.getErrorCode();%0A%09   this.message = se.getMessage();%0A%09%7D%0A%0A%09public Result(long code, String message, T result) %7B%0A%09   this.code = code;%0A%09   this.message = message;%0A%09   this.result = result;%0A%09%7D%0A%0A%09public Result(long code, T result) %7B%0A%09   this.code = code;%0A%09   this.message = %22%22;%0A%09   this.result = result;%0A%09%7D%0A%0A%09public Result(long code, String message) %7B%0A%09   this.code = code;%0A%09   this.message = message;%0A%09%7D%0A%0A%09public Result(long code) %7B%0A%09   this.code = code;%0A%09   this.message = %22%22;%0A%09%7D%0A%0A%09public long getCode() %7B%0A%09   return this.code;%0A%09%7D%0A%09%0A%09public void setCode(long code) %7B%0A%09   this.code = code;%0A%09%7D%0A%09%0A%09public String getMessage() %7B%0A%09   return this.message;%0A%09%7D%0A%0A%09public void setMessage(String message) %7B%0A%09   this.message = message;%0A%09%7D%0A%09%0A%09public T getResult() %7B%0A%09   return this.result;%0A%09%7D%0A%09%0A%09public void setResult(T result) %7B%0A%09   this.result = result;%0A%09%7D%0A%09%0A%7D

add service result