remove address book operation code, as it duplicates the the functionality of web console (#7451)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-03-21 14:01:18 +08:00
committed by GitHub
parent f421a14659
commit 67bc26ed57
46 changed files with 48 additions and 1218 deletions

View File

@@ -265,42 +265,3 @@ class AbTag {
: name = json['name'] ?? '',
color = json['color'] ?? '';
}
class AbRulePayload {
String guid;
String? user;
String? group;
int rule;
AbRulePayload(
this.guid,
this.user,
this.group,
this.rule,
);
AbRulePayload.fromJson(Map<String, dynamic> json)
: guid = json['guid'] ?? '',
user = json['user'],
group = json['group'],
rule = json['rule'] ?? 0;
static String buildName(String? user, String? group) {
if (user != null && group != null) {
return '-';
}
if (user != null) {
return user;
}
if (group != null) {
return group;
}
return teamName;
}
String getName() {
return buildName(user, group);
}
static String teamName = translate('Everyone');
}