| 12345678910111213141516171819202122232425262728293031323334 |
- package com.zswl.dataservice.model.user;
- import com.zswl.dataservice.model.baseParam.SuperModel;
- import com.zswl.dataservice.type.DataState;
- import com.zswl.dataservice.utils.ITree;
- import io.swagger.v3.oas.annotations.media.Schema;
- import lombok.Data;
- import java.io.Serializable;
- import java.util.ArrayList;
- import java.util.List;
- /**
- * @author TRX
- * @date 2024/6/3
- */
- @Data
- public class DepartmentModel extends SuperModel implements ITree<DepartmentModel>, Serializable {
- @Schema(description = "部门名称")
- private String name;
- @Schema(description = "部门编码")
- private String code;
- @Schema(description = "部门状态")
- private DataState state = DataState.Enable;
- @Schema(description = "上级ID")
- private String parentId;
- @Schema(description = "子层级")
- private List<DepartmentModel> children = new ArrayList<>();
- }
|