1
0

feat(web): 修复逻辑删除,增加可选查询

This commit is contained in:
2024-12-05 17:58:38 +08:00
parent 6a68085870
commit 28d70e5f9a
17 changed files with 183 additions and 165 deletions

View File

@@ -1,7 +1,6 @@
package com.eshore.gringotts.web;
import com.eshore.gringotts.web.domain.base.controller.query.DetailQuery;
import com.eshore.gringotts.web.domain.base.controller.query.ListQuery;
import com.eshore.gringotts.web.domain.base.controller.query.Query;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.eclipsecollections.EclipseCollectionsModule;
@@ -17,7 +16,7 @@ public class TestQueryParse {
mapper.registerModule(new EclipseCollectionsModule());
mapper.registerModule(new JavaTimeModule());
// language=JSON
System.out.println(mapper.readValue("{}", DetailQuery.class));
System.out.println(mapper.readValue("{}", Query.class));
// language=JSON
System.out.println(mapper.readValue("{\n" +
" \"query\": {\n" +
@@ -25,7 +24,7 @@ public class TestQueryParse {
" \"name\": \"lanyuanxiaoyao\"\n" +
" }\n" +
" }\n" +
"}", DetailQuery.class));
"}", Query.class));
// language=JSON
System.out.println(mapper.readValue("{\n" +
" \"query\": {\n" +
@@ -64,6 +63,6 @@ public class TestQueryParse {
" \"size\": 10,\n" +
" \"page\": 1\n" +
" }\n" +
"}", ListQuery.class));
"}", Query.class));
}
}