LegendOutline.kt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.persagy.legend.models.entities
  2. import com.sybotan.service.models.annotations.SCascade
  3. import io.swagger.v3.oas.annotations.media.Schema
  4. import javax.persistence.Column
  5. import javax.persistence.Table
  6. /**
  7. * 轮廓类图例
  8. * @author zy
  9. */
  10. @Schema(description = "轮廓图例")
  11. @Table(name = "labsl_meiku.legend_outline")
  12. class LegendOutline: Legend() {
  13. /** 轮廓线宽度 */
  14. @Schema(description = "轮廓线宽度")
  15. @Column(name = "width")
  16. var width: Int? = null
  17. /** 轮廓线颜色 */
  18. @Schema(description = "轮廓线颜色")
  19. @Column(name = "color")
  20. var color: String? = null
  21. /** 轮廓填充色 */
  22. @Schema(description = "轮廓填充色")
  23. @Column(name = "fill_color")
  24. var fillColor: String? = null
  25. /** 当前状态 */
  26. @Schema(description = "当前状态")
  27. @Column(name = "state")
  28. var state: String? = null
  29. /** 状态信息 */
  30. @Schema(description = "状态信息")
  31. @SCascade(table="labsl_meiku.state", idColumn="legend_id", childIdColumn="id")
  32. var stateList: ArrayList<State>? = null
  33. /** 类型信息 */
  34. @Schema(description = "类型信息")
  35. // @SCascade(table="dict.def_class", idColumn="class_code", childIdColumn="code")
  36. var classInfo: DefClass? = null
  37. } // Class LegendPipe