DictModel.java 923 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package org.jeecg.common.system.vo;
  2. import java.io.Serializable;
  3. import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  4. import lombok.Data;
  5. import lombok.EqualsAndHashCode;
  6. import lombok.experimental.Accessors;
  7. /**
  8. * @Description: 字典类
  9. * @author: jeecg-boot
  10. */
  11. @Data
  12. @EqualsAndHashCode(callSuper = false)
  13. @Accessors(chain = true)
  14. @JsonIgnoreProperties(ignoreUnknown = true)
  15. public class DictModel implements Serializable{
  16. private static final long serialVersionUID = 1L;
  17. public DictModel() {
  18. }
  19. public DictModel(String value, String text) {
  20. this.value = value;
  21. this.text = text;
  22. }
  23. /**
  24. * 字典value
  25. */
  26. private String value;
  27. /**
  28. * 字典文本
  29. */
  30. private String text;
  31. /**
  32. * 特殊用途: JgEditableTable
  33. * @return
  34. */
  35. public String getTitle() {
  36. return this.text;
  37. }
  38. /**
  39. * 特殊用途: vue3 Select组件
  40. */
  41. public String getLabel() {
  42. return this.text;
  43. }
  44. }