You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package db.model;
|
|
|
|
public class JsonResult<T extends AbstractModel> extends ToJson{
|
|
private T data;
|
|
|
|
private JsonResult.type type;
|
|
|
|
public JsonResult(T data, JsonResult.type type) {
|
|
this.data = data;
|
|
this.type = type;
|
|
}
|
|
|
|
enum type{
|
|
success,
|
|
fail
|
|
}
|
|
}
|
|
|