mirror of https://github.com/halo-dev/halo
feat(user): 增加通过邮箱搜索用户功能
parent
2ca731f10a
commit
b4a00f457a
|
@ -724,6 +724,7 @@ public class UserEndpoint implements CustomEndpoint {
|
|||
Optional.ofNullable(getKeyword())
|
||||
.filter(StringUtils::isNotBlank)
|
||||
.ifPresent(keyword -> builder.andQuery(or(
|
||||
equal("spec.email", keyword),
|
||||
contains("spec.displayName", keyword),
|
||||
equal("metadata.name", keyword)
|
||||
)));
|
||||
|
|
Loading…
Reference in New Issue