mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(improvement)(headless) Remove redundant user dimensions in demo data (#663)
Co-authored-by: jolunoluo
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
package com.tencent.supersonic.auth.api.authentication.pojo;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Organization {
|
||||
|
||||
private String id;
|
||||
|
||||
@@ -44,7 +44,17 @@ public class DefaultUserAdaptor implements UserAdaptor {
|
||||
|
||||
@Override
|
||||
public List<Organization> getOrganizationTree() {
|
||||
return Lists.newArrayList();
|
||||
Organization superSonic = new Organization("1", "0",
|
||||
"Supersonic", "SuperSonic", Lists.newArrayList(), true);
|
||||
Organization hr = new Organization("2", "1",
|
||||
"Hr", "Supersonic/Hr", Lists.newArrayList(), false);
|
||||
Organization sales = new Organization("3", "1",
|
||||
"Sales", "Supersonic/Sales", Lists.newArrayList(), false);
|
||||
Organization marketing = new Organization("4", "1",
|
||||
"Marketing", "Supersonic/Marketing", Lists.newArrayList(), false);
|
||||
List<Organization> subOrganization = Lists.newArrayList(hr, sales, marketing);
|
||||
superSonic.setSubOrganizations(subOrganization);
|
||||
return Lists.newArrayList(superSonic);
|
||||
}
|
||||
|
||||
private User convert(UserDO userDO) {
|
||||
|
||||
Reference in New Issue
Block a user