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; }
}