ModuleModel.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package jnpf.base.model.module;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import lombok.Data;
  4. import java.io.Serializable;
  5. import java.util.Date;
  6. /**
  7. * 功能
  8. */
  9. @Data
  10. public class ModuleModel implements Serializable {
  11. private String id;
  12. private String parentId;
  13. private String fullName;
  14. private String icon;
  15. //1-类别、2-页面
  16. private int type;
  17. private String urlAddress;
  18. private String pageAddress;
  19. private String linkTarget;
  20. private String category;
  21. private String description;
  22. private Long sortCode=999999L;
  23. private String enCode;
  24. private String propertyJson;
  25. private String moduleId;
  26. private String systemId;
  27. private Long creatorTime;
  28. private Date creatorTimes;
  29. public Long getCreatorTime() {
  30. if (this.creatorTimes != null && this.creatorTime == null) {
  31. return this.getCreatorTimes().getTime();
  32. } else if (this.creatorTime != null){
  33. return this.creatorTime;
  34. }
  35. return 0L;
  36. }
  37. public void setCreatorTimes(Date creatorTimes) {
  38. this.creatorTimes = creatorTimes;
  39. if(creatorTimes != null && this.creatorTime == null){
  40. this.creatorTime = creatorTimes.getTime();
  41. }
  42. }
  43. public void setCreatorTime(Long creatorTime) {
  44. this.creatorTime = creatorTime;
  45. if(creatorTime != null && this.creatorTimes == null){
  46. this.creatorTimes = new Date(creatorTime);
  47. }
  48. }
  49. }