AdmRelationAddRequest.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.persagy.proxy.adm.model;
  2. import com.alibaba.fastjson.annotation.JSONField;
  3. import com.fasterxml.jackson.annotation.JsonAlias;
  4. import com.fasterxml.jackson.annotation.JsonProperty;
  5. import lombok.AllArgsConstructor;
  6. import lombok.Builder;
  7. import lombok.Data;
  8. import lombok.NoArgsConstructor;
  9. import java.io.Serializable;
  10. import java.util.ArrayList;
  11. import java.util.List;
  12. import java.util.Set;
  13. @Data
  14. @Builder
  15. @NoArgsConstructor
  16. @AllArgsConstructor
  17. public class AdmRelationAddRequest implements Serializable {
  18. /**需要计算的类型*/
  19. private String relType;
  20. /**编码类型,CADID图纸编码(cadId),设备名称(name),设备ID(id),本地编码(localId),本地名称(localName)*/
  21. private String type;
  22. /**主对象内容*/
  23. private String mainContent;
  24. /**从对象内容*/
  25. private Set<String> fromContent;
  26. /**图类型编码*/
  27. @JsonAlias({"graphicType","graphic_type"})
  28. @JsonProperty("graphicType")
  29. @JSONField(name = "graphicType",alternateNames = {"parentCode","graphic_type"})
  30. private String graphicType;
  31. }