|
|
|
@ -3,6 +3,7 @@ package com.hnac.hzinfo.inspect.obj.feign;
|
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import com.hnac.hzinfo.inspect.obj.dto.ContentDTO; |
|
|
|
|
import com.hnac.hzinfo.inspect.obj.dto.ProjectDTO; |
|
|
|
|
import com.hnac.hzinfo.inspect.obj.request.ProjectContentRequest; |
|
|
|
|
import com.hnac.hzinfo.inspect.obj.services.ProjectService; |
|
|
|
|
import com.hnac.hzinfo.inspect.obj.vo.ProjectVO; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
@ -41,9 +42,12 @@ public class ProjectClient extends BladeController implements IProjectClient {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@GetMapping(GET_PROJECT_AND_CONTENT_BY_EM_CODE) |
|
|
|
|
public R<ProjectVO> getProjectAndContentByEmCode(@NotNull @Valid String emCode, ContentDTO content, Query query) { |
|
|
|
|
return R.data(projectService.getProjectAndContentByEmCode(emCode,content,query)); |
|
|
|
|
@PostMapping(GET_PROJECT_AND_CONTENT_BY_EM_CODE) |
|
|
|
|
public R<ProjectVO> getProjectAndContentByEmCode(@RequestBody ProjectContentRequest request) { |
|
|
|
|
Query query = new Query(); |
|
|
|
|
query.setSize(request.getSize()); |
|
|
|
|
query.setCurrent(request.getCurrent()); |
|
|
|
|
return R.data(projectService.getProjectAndContentByEmCode(request.getEmCode(), request.getContentDTO(), query)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|