feat(web): 修复逻辑删除,增加可选查询
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user