ResponseInfo.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.aip.gateway.api.model.response;
  2. import com.aip.gateway.api.utils.TimeUtils;
  3. import io.swagger.annotations.ApiModel;
  4. import lombok.*;
  5. import java.util.Date;
  6. @EqualsAndHashCode(callSuper = true)
  7. //@Data
  8. @Getter
  9. @Setter
  10. @ToString
  11. //@Builder
  12. @ApiModel("ResponseInfo(FILE INFO 응답")
  13. public class ResponseInfo extends ResponseBase {
  14. private boolean isLabeled;
  15. private boolean isProtected;
  16. private Date creationTime;
  17. private String owner;
  18. private String contentId;
  19. private String labelId;
  20. private String labelName;
  21. private String templateId;
  22. private String templateName;
  23. public ResponseInfo(int errorCode, String errorMessage) {
  24. super(errorCode, errorMessage, "", "", "", "", "", "", "", 0, "", "", "", "", "", 0);
  25. isLabeled = false;
  26. isProtected = false;
  27. creationTime = TimeUtils.getCurrentDate();
  28. owner = "";
  29. contentId = "";
  30. labelId = "";
  31. labelName = "";
  32. templateId = "";
  33. templateName = "";
  34. }
  35. }