mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-11 16:57:12 +08:00
refactor: 优化 QueryTypeEnum 枚举值命名
This commit is contained in:
@@ -43,13 +43,13 @@ public class AnnouncementQuery implements Serializable {
|
||||
* 标题
|
||||
*/
|
||||
@Schema(description = "标题", example = "这是公告标题")
|
||||
@Query(type = QueryType.INNER_LIKE)
|
||||
@Query(type = QueryType.LIKE)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
@Schema(description = "类型", example = "1")
|
||||
@Query(type = QueryType.EQUAL)
|
||||
@Query
|
||||
private String type;
|
||||
}
|
@@ -43,7 +43,7 @@ public class DeptQuery implements Serializable {
|
||||
* 名称
|
||||
*/
|
||||
@Schema(description = "名称", example = "测试部")
|
||||
@Query(type = QueryType.INNER_LIKE)
|
||||
@Query(type = QueryType.LIKE)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
|
@@ -16,15 +16,14 @@
|
||||
|
||||
package top.charles7c.continew.admin.system.model.query;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.Query;
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.QueryType;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.Query;
|
||||
|
||||
/**
|
||||
* 字典查询条件
|
||||
*
|
||||
@@ -42,7 +41,7 @@ public class DictQuery implements Serializable {
|
||||
* 名称
|
||||
*/
|
||||
@Schema(description = "名称")
|
||||
@Query(blurry = {"code", "name", "description"})
|
||||
@Query(columns = {"name", "code", "description"}, type = QueryType.LIKE)
|
||||
private String name;
|
||||
|
||||
}
|
@@ -43,13 +43,13 @@ public class FileQuery implements Serializable {
|
||||
* 名称
|
||||
*/
|
||||
@Schema(description = "名称")
|
||||
@Query(type = QueryType.INNER_LIKE)
|
||||
@Query(type = QueryType.LIKE)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
@Schema(description = "类型")
|
||||
@Query(type = QueryType.EQUAL)
|
||||
@Query
|
||||
private Integer type;
|
||||
}
|
@@ -43,7 +43,7 @@ public class MenuQuery implements Serializable {
|
||||
* 标题
|
||||
*/
|
||||
@Schema(description = "标题", example = "用户管理")
|
||||
@Query(type = QueryType.INNER_LIKE)
|
||||
@Query(type = QueryType.LIKE)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
|
@@ -48,7 +48,7 @@ public class MessageQuery implements Serializable {
|
||||
* 标题
|
||||
*/
|
||||
@Schema(description = "标题", example = "欢迎注册 xxx")
|
||||
@Query(type = QueryType.INNER_LIKE)
|
||||
@Query(type = QueryType.LIKE)
|
||||
private String title;
|
||||
|
||||
/**
|
||||
|
@@ -16,15 +16,14 @@
|
||||
|
||||
package top.charles7c.continew.admin.system.model.query;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.Query;
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.QueryType;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.Query;
|
||||
|
||||
/**
|
||||
* 角色查询条件
|
||||
*
|
||||
@@ -42,7 +41,7 @@ public class RoleQuery implements Serializable {
|
||||
* 名称
|
||||
*/
|
||||
@Schema(description = "名称", example = "测试人员")
|
||||
@Query(blurry = {"name", "code"})
|
||||
@Query(columns = {"name", "code"}, type = QueryType.LIKE)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
|
@@ -43,13 +43,13 @@ public class StorageQuery implements Serializable {
|
||||
* 名称
|
||||
*/
|
||||
@Schema(description = "名称")
|
||||
@Query(type = QueryType.INNER_LIKE)
|
||||
@Query(type = QueryType.LIKE)
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@Schema(description = "状态")
|
||||
@Query(type = QueryType.EQUAL)
|
||||
@Query
|
||||
private Integer status;
|
||||
}
|
@@ -16,22 +16,18 @@
|
||||
|
||||
package top.charles7c.continew.admin.system.model.query;
|
||||
|
||||
import cn.hutool.core.date.DatePattern;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.Query;
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.QueryType;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import cn.hutool.core.date.DatePattern;
|
||||
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.Query;
|
||||
import top.charles7c.continew.starter.data.mybatis.plus.query.QueryType;
|
||||
|
||||
/**
|
||||
* 用户查询条件
|
||||
*
|
||||
@@ -49,7 +45,7 @@ public class UserQuery implements Serializable {
|
||||
* 用户名
|
||||
*/
|
||||
@Schema(description = "用户名", example = "zhangsan")
|
||||
@Query(blurry = {"username", "nickname", "email", "phone"})
|
||||
@Query(columns = {"username", "nickname", "email", "phone"}, type = QueryType.LIKE)
|
||||
private String username;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user