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.
team_noob/src/main/java/com/payment/base/ResultBean.java

18 lines
618 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.payment.base;
public class ResultBean<T> {
private int code; // 响应码200成功其他失败
private String msg; // 响应信息
private T data; // 响应数据
// getter + setter
public int getCode() { return code; }
public void setCode(int code) { this.code = code; }
public String getMsg() { return msg; }
public void setMsg(String msg) { this.msg = msg; }
public T getData() { return data; }
public void setData(T data) { this.data = data; }
// 快捷判断成功方法
public boolean isSuccess() { return code == 200; }
}