package com.feng.note.util;

import java.io.Serializable;

public class JsonResult<T> implements Serializable {

	private String success;
	private Integer state;
	private T data;
	
	public JsonResult() {
		
	}
	
	

	public JsonResult(T data) {
		this.success = "OK";
		this.state = 0;
		this.data = data;
	}



	public JsonResult(String success, Integer state) {
		super();
		this.success = success;
		this.state = state;
	}

	
	public String getSuccess() {
		return success;
	}


	public void setSuccess(String success) {
		this.success = success;
	}

	public Integer getState() {
		return state;
	}


	public void setState(Integer state) {
		this.state = state;
	}

	public T getData() {
		return data;
	}


	public void setData(T data) {
		this.data = data;
	}
	
	
}

@@ -50,16 +50,39 @@
 lizable;
+%0A/**%0A*%E8%BF%94%E5%9B%9E%E7%9A%84%E4%BF%A1%E6%81%AFjson%E6%A0%BC%E5%BC%8F%E3%80%82%0A*%0A*/
 %0A%0Apublic

Update JsonResult.java