feat:完善获取岗位信息
parent
caf1911134
commit
9c7b45c8c8
|
|
@ -1,8 +0,0 @@
|
||||||
# Default ignored files
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
||||||
# Editor-based HTTP Client requests
|
|
||||||
/httpRequests/
|
|
||||||
# Datasource local storage ignored files
|
|
||||||
/dataSources/
|
|
||||||
/dataSources.local.xml
|
|
||||||
|
|
@ -92,4 +92,11 @@ public class ZcloudPostFacadeImpl implements ZcloudPostFacade {
|
||||||
List<ZcloudPostCO> zcloudUserCo = postCoConvertor.converCOsToDubboCOs(list);
|
List<ZcloudPostCO> zcloudUserCo = postCoConvertor.converCOsToDubboCOs(list);
|
||||||
return MultiResponse.of(zcloudUserCo);
|
return MultiResponse.of(zcloudUserCo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SingleResponse<ZcloudPostCO> getPostById(Long aLong) {
|
||||||
|
PostCO postCO = postService.getPostById(aLong);
|
||||||
|
ZcloudPostCO zcloudPostCO = postCoConvertor.converCOToDubboCO(postCO);
|
||||||
|
return SingleResponse.of(zcloudPostCO);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,11 @@ public interface PostCoConvertor {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<PostCO> converDOsToCOs(List<PostDO> postDOs);
|
List<PostCO> converDOsToCOs(List<PostDO> postDOs);
|
||||||
|
|
||||||
|
PostCO converDOToCO(PostDO postDO);
|
||||||
|
|
||||||
List<ZcloudPostCO> converCOsToDubboCOs(List<PostCO> data);
|
List<ZcloudPostCO> converCOsToDubboCOs(List<PostCO> data);
|
||||||
|
|
||||||
|
ZcloudPostCO converCOToDubboCO(PostCO data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -178,5 +178,10 @@ public class PostQueryExe {
|
||||||
List<PostDO> list = postRepository.list();
|
List<PostDO> list = postRepository.list();
|
||||||
return postCoConvertor.converDOsToCOs(list);
|
return postCoConvertor.converDOsToCOs(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PostCO getPostById(Long aLong) {
|
||||||
|
PostDO data = postRepository.getById(aLong);
|
||||||
|
return postCoConvertor.converDOToCO(data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,5 +81,10 @@ public class PostServiceImpl implements PostServiceI {
|
||||||
public List<PostCO> getPostList() {
|
public List<PostCO> getPostList() {
|
||||||
return postQueryExe.getPostList();
|
return postQueryExe.getPostList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PostCO getPostById(Long aLong) {
|
||||||
|
return postQueryExe.getPostById(aLong);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,5 +37,7 @@ public interface PostServiceI {
|
||||||
List<PostCO> listByPostIds(Collection<Long> collection);
|
List<PostCO> listByPostIds(Collection<Long> collection);
|
||||||
|
|
||||||
List<PostCO> getPostList();
|
List<PostCO> getPostList();
|
||||||
|
|
||||||
|
PostCO getPostById(Long aLong);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue