import ErrNo from "@/constants/errorEnum";

export default class Response<T> {
  data: T;

  errno: ErrNo;

  message: string;

  constructor(data: T, errno = ErrNo.NO_ERROR, message = "success") {
    this.data = data;
    this.errno = errno;
    this.message = message;
  }
}
