Commit d82bb168 by 刘宇峰

用户组织feign开放接口

1 parent 924aada7
......@@ -31,11 +31,6 @@ public class FindOrgRequest {
private Collection<Long> userIds;
/**
* 返回树形结构
*/
private Boolean returnTrees = true;
/**
* 用户子树
*/
private Boolean hasUserLeaf = false;
......
......@@ -14,10 +14,11 @@ public class OrgModel {
* 是否根组织:0否,1是
*/
private Integer isRoot;
/**
* 组织类型:0部门,1用户
* 组织类型:o组织,u用户
*/
private Integer type;
private String type = "";
@JsonIgnore
private Integer depth;
......
......@@ -20,13 +20,13 @@ public class OrgTreeModel implements TreeModel<OrgModel> {
}
@Override
public Long getId() {
return org.getOrgId();
public String getId() {
return org.getType() + org.getOrgId();
}
@Override
public Long getParentId() {
return org.getParentId();
public String getParentId() {
return String.valueOf(org.getParentId());
}
@Override
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!