从"Blog"仓库中分离出来

This commit is contained in:
小海
2019-11-28 19:18:16 +08:00
commit 16cc30f513
119 changed files with 11291 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
package cn.celess.blog.entity;
import lombok.Data;
import net.sf.json.JSONObject;
import java.io.Serializable;
/**
* @author : xiaohai
* @date : 2019/03/28 15:24
*/
@Data
public class Response implements Serializable {
private int code;
private String msg;
private Object result;
private long date;
public Response() {
}
public Response(int code, String msg, Object result, long date) {
this.code = code;
this.msg = msg;
this.result = result;
this.date = date;
}
@Override
public String toString() {
JSONObject jsonObject = JSONObject.fromObject(this);
return jsonObject.toString();
}
}