refactor: 优化通用查询注解多字段模糊查询

This commit is contained in:
2023-09-12 22:33:36 +08:00
parent 36fda57d49
commit 375810772a
4 changed files with 10 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ public class RoleQuery implements Serializable {
* 角色名称
*/
@Schema(description = "角色名称", example = "测试人员")
@Query(blurry = "name,code")
@Query(blurry = {"name", "code"})
private String name;
/**

View File

@@ -47,7 +47,7 @@ public class UserQuery implements Serializable {
* 用户名
*/
@Schema(description = "用户名", example = "zhangsan")
@Query(blurry = "username,nickname,email,phone")
@Query(blurry = {"username", "nickname", "email", "phone"})
private String username;
/**