refactor(service): 调整接口泛型参数并优化缓存策略
docs(task): 更新接口泛型修改相关文档 - 重构QueryService接口,移除未使用的Specification相关方法 - InventoryCatalogService实现IEntityService和QueryService接口 - 新增delete方法实现并调整缓存配置 - 删除过时的任务文档并重新组织文档结构 - 更新ALIGNMENT、CONSENSUS等文档,添加WebSocket服务兼容性说明
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
package com.ecep.contract;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.jpa.domain.Specification;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
|
||||
/**
|
||||
* 查询服务接口,提供通用的分页查询能力
|
||||
@@ -20,9 +19,9 @@ public interface QueryService<T> {
|
||||
*/
|
||||
Page<T> findAll(JsonNode paramsNode, Pageable pageable);
|
||||
|
||||
Specification<T> getSpecification(String searchText);
|
||||
// Specification<T> getSpecification(String searchText);
|
||||
|
||||
Page<T> findAll(Specification<T> spec, Pageable pageable);
|
||||
// Page<T> findAll(Specification<T> spec, Pageable pageable);
|
||||
|
||||
default long count(JsonNode paramsNode) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user