content: #set( $symbol_pound = '#' )
  #set( $symbol_dollar = '$' )
  #set( $symbol_escape = '\' )
  package ${package}.application.dto;
  
  public class Response {
      private boolean success;
  
      private String errCode;
  
      private String errMessage;
  
      public boolean isSuccess() {
          return success;
      }
  
      public void setSuccess(boolean success) {
          this.success = success;
      }
  
      public String getErrCode() {
          return errCode;
      }
  
      public void setErrCode(String errCode) {
          this.errCode = errCode;
      }
  
      public String getErrMessage() {
          return errMessage;
      }
  
      public void setErrMessage(String errMessage) {
          this.errMessage = errMessage;
      }
  
      @Override
      public String toString() {
          return "Response [success=" + success + ", errCode=" + errCode + ", errMessage=" + errMessage + "]";
      }
  
      public static Response buildSuccess() {
          Response response = new Response();
          response.setSuccess(true);
          return response;
      }
  
      public static Response buildFailure(String errCode, String errMessage) {
          Response response = new Response();
          response.setSuccess(false);
          response.setErrCode(errCode);
          response.setErrMessage(errMessage);
          return response;
      }
  }
  