DepartmentModel.java 882 B

12345678910111213141516171819202122232425262728293031323334
  1. package com.zswl.dataservice.model.user;
  2. import com.zswl.dataservice.model.baseParam.SuperModel;
  3. import com.zswl.dataservice.type.DataState;
  4. import com.zswl.dataservice.utils.ITree;
  5. import io.swagger.v3.oas.annotations.media.Schema;
  6. import lombok.Data;
  7. import java.io.Serializable;
  8. import java.util.ArrayList;
  9. import java.util.List;
  10. /**
  11. * @author TRX
  12. * @date 2024/6/3
  13. */
  14. @Data
  15. public class DepartmentModel extends SuperModel implements ITree<DepartmentModel>, Serializable {
  16. @Schema(description = "部门名称")
  17. private String name;
  18. @Schema(description = "部门编码")
  19. private String code;
  20. @Schema(description = "部门状态")
  21. private DataState state = DataState.Enable;
  22. @Schema(description = "上级ID")
  23. private String parentId;
  24. @Schema(description = "子层级")
  25. private List<DepartmentModel> children = new ArrayList<>();
  26. }