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.
43 lines
777 B
43 lines
777 B
package com.community.pocket.domain;
|
|
|
|
import com.community.pocket.Result;
|
|
|
|
public class Res<T> {
|
|
// 响应码
|
|
private Result result;
|
|
private String message;
|
|
private T body;
|
|
|
|
public Res() {
|
|
}
|
|
|
|
public Res(Result result, String message, T body) {
|
|
this.result = result;
|
|
this.message = message;
|
|
this.body = body;
|
|
}
|
|
|
|
public Result getResult() {
|
|
return result;
|
|
}
|
|
|
|
public void setResult(Result result) {
|
|
this.result = result;
|
|
}
|
|
|
|
public String getMessage() {
|
|
return message;
|
|
}
|
|
|
|
public void setMessage(String message) {
|
|
this.message = message;
|
|
}
|
|
|
|
public T getBody() {
|
|
return body;
|
|
}
|
|
|
|
public void setBody(T body) {
|
|
this.body = body;
|
|
}
|
|
}
|
|
|