Class ResultDTO<T>

java.lang.Object
com.luna.common.dto.ResultDTO<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable

public class ResultDTO<T> extends Object implements Serializable
返回值
Author:
luna
See Also:
  • Constructor Details

    • ResultDTO

      public ResultDTO()
    • ResultDTO

      public ResultDTO(boolean success, Integer code, String message)
    • ResultDTO

      public ResultDTO(boolean success, Integer code, String message, T data)
  • Method Details

    • isSuccess

      public boolean isSuccess()
    • setSuccess

      public void setSuccess(boolean success)
    • getCode

      public int getCode()
    • setCode

      public void setCode(int code)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • getData

      public T getData()
    • setData

      public void setData(T data)
    • toString

      public String toString()
      Overrides:
      toString in class Object