mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-25 02:32:57 +08:00
推荐列表查询接口修改
This commit is contained in:
@@ -39,6 +39,17 @@ class CasesServiceImplTest {
|
||||
System.out.println(casesV2);
|
||||
}
|
||||
|
||||
@Test
|
||||
void queryRecommendPageCasesV2() throws JsonProcessingException {
|
||||
String jsonStr = "{\"pageIndex\":1,\"pageSize\":10,\"orderField\":\"excellent\",\"majorType\":\"\",\"orgDomainDtos\":[],\"orderAsc\":false,\"excellent\":true,\"breCommend\":true,\"caseType\":\"\",\"authorName\":\"\",\"notInIds\":[],\"type\":\"recommend\",\"userId\":\"\",\"parent\":\"\",\"children\":[],\"name\":\"\",\"years\":[2023,2022,2020,2021]}";
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);
|
||||
CasePageVo pageVo = mapper.readValue(jsonStr, CasePageVo.class);
|
||||
pageVo.setUserId("965342027497607168");
|
||||
PageList<Cases> casesV2 = casesService.queryRecommendPageCasesV2(pageVo);
|
||||
System.out.println(casesV2);
|
||||
}
|
||||
|
||||
@Test
|
||||
void queryCaseV2() {
|
||||
CurrentUser currentUser = new CurrentUser();
|
||||
|
||||
Reference in New Issue
Block a user