SysResource.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * 爱组搭,低代码组件化开发平台
  3. * ------------------------------------------
  4. * 受知识产权保护,请勿删除版权申明,开发平台不允许做非法网站,后果自负
  5. */
  6. package com.aizuda.boot.modules.system.entity;
  7. import com.aizuda.core.bean.BaseEntity;
  8. import com.aizuda.core.validation.Create;
  9. import io.swagger.v3.oas.annotations.media.Schema;
  10. import jakarta.validation.constraints.NotBlank;
  11. import jakarta.validation.constraints.NotNull;
  12. import jakarta.validation.constraints.PositiveOrZero;
  13. import jakarta.validation.constraints.Size;
  14. import lombok.Getter;
  15. import lombok.Setter;
  16. /**
  17. * 系统资源
  18. *
  19. * @author 青苗
  20. * @since 2021-11-07
  21. */
  22. @Getter
  23. @Setter
  24. @Schema(name = "SysResource", description = "系统资源")
  25. public class SysResource extends BaseEntity {
  26. @Schema(description = "父ID")
  27. @NotNull(groups = Create.class)
  28. @PositiveOrZero
  29. private Long pid;
  30. @Schema(description = "名称")
  31. @NotBlank(groups = Create.class)
  32. @Size(max = 60)
  33. private String title;
  34. @Schema(description = "别名")
  35. @Size(max = 60)
  36. private String alias;
  37. @Schema(description = "类型 0,菜单 1,iframe 2,外链 3,按钮")
  38. @NotNull(groups = Create.class)
  39. @PositiveOrZero
  40. private Integer type;
  41. @Schema(description = "编码")
  42. @Size(max = 100)
  43. private String code;
  44. @Schema(description = "重定向")
  45. @Size(max = 100)
  46. private String redirect;
  47. @Schema(description = "文件路径")
  48. @Size(max = 100)
  49. private String path;
  50. @Schema(description = "图标")
  51. @Size(max = 30)
  52. private String icon;
  53. @Schema(description = "状态 0、禁用 1、正常")
  54. @PositiveOrZero
  55. private Integer status;
  56. @Schema(description = "排序")
  57. @PositiveOrZero
  58. private Integer sort;
  59. @Schema(description = "视图")
  60. @Size(max = 255)
  61. private String component;
  62. @Schema(description = "颜色")
  63. @Size(max = 30)
  64. private String color;
  65. @Schema(description = "隐藏菜单")
  66. private Boolean hidden;
  67. @Schema(description = "上级路由")
  68. private String parentRoute;
  69. @Schema(description = "保留查询参数")
  70. private Boolean keepAlive;
  71. }