| | |
| | | |
| | | private static final long serialVersionUID = -3948389268046368059L; |
| | | |
| | | /**总编码*/ |
| | | private String code; |
| | | /**子编码*/ |
| | | private String subCode = "100"; |
| | | |
| | | private String msg; |
| | | |
| | |
| | | return Result; |
| | | } |
| | | |
| | | public static PlatformResult failure(String code,String subCode, String msg) { |
| | | PlatformResult Result = new PlatformResult(); |
| | | Result.setCode(code); |
| | | Result.setMsg(msg); |
| | | Result.setSubCode(subCode); |
| | | return Result; |
| | | } |
| | | |
| | | public static PlatformResult failure(String code, String msg, Object data) { |
| | | PlatformResult Result = new PlatformResult(); |
| | | Result.setCode(code); |
| | | Result.setMsg(msg); |
| | | Result.setData(data); |
| | | return Result; |
| | | } |
| | | |
| | | public static PlatformResult failure(String code,String subCode, String msg, Object data) { |
| | | PlatformResult Result = new PlatformResult(); |
| | | Result.setCode(code); |
| | | Result.setMsg(msg); |
| | | Result.setData(data); |
| | | Result.setSubCode(subCode); |
| | | return Result; |
| | | } |
| | | |
| | |
| | | this.data = data; |
| | | } |
| | | |
| | | public String getSubCode() { |
| | | return subCode; |
| | | } |
| | | |
| | | public void setSubCode(String subCode) { |
| | | this.subCode = subCode; |
| | | } |
| | | } |
| | | |