CrowdProjectService.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.mooctest.crowd.site.service;
  2. import com.mooctest.crowd.domain.domainobject.CrowdTestProject;
  3. import com.mooctest.crowd.site.command.CrowdTestProjectCommand;
  4. import com.mooctest.crowd.site.command.GenerateProjectCommand;
  5. import com.mooctest.crowd.site.data.dto.ProjectDetailsDTO;
  6. import com.mooctest.crowd.site.data.vo.CrowdTestProjectVO;
  7. import com.mooctest.crowd.site.data.vo.RegionalManagerVO;
  8. import org.springframework.data.domain.Pageable;
  9. import org.springframework.web.multipart.MultipartFile;
  10. import java.util.List;
  11. /**
  12. * @author: Diors.Po
  13. * @Email: 171256175@qq.com
  14. * @date 2019-07-29 10:49
  15. */
  16. public interface CrowdProjectService {
  17. List<CrowdTestProjectVO> findAllMoreHotProjects();
  18. List<CrowdTestProjectVO> findByNameLike(String name);
  19. List<CrowdTestProjectVO> findAll(Pageable pageable);
  20. List<CrowdTestProjectVO> findAll();
  21. ProjectDetailsDTO getProjectDetails(String projectCode, Long userId);
  22. ProjectDetailsDTO createCrowdProject(CrowdTestProjectCommand command);
  23. ProjectDetailsDTO updateProject(String projectCode, CrowdTestProjectCommand crowdTestProjectCommand);
  24. void deleteProject(Long projectId, Long userId);
  25. ProjectDetailsDTO generateProjectWithData(GenerateProjectCommand command);
  26. List<ProjectDetailsDTO> importMultiProjectsByExcel(List<CrowdTestProject> projects);
  27. List<CrowdTestProject> generateProjectByExcel(Long userId, MultipartFile file);
  28. List<RegionalManagerVO> getRegionalManagerList();
  29. ProjectDetailsDTO receiveProject(String projectCode, Long userId);
  30. void rejectProject(String projectCode, Long userId);
  31. ProjectDetailsDTO commitProject(String projectCode, Long userId);
  32. ProjectDetailsDTO confirmFinished(String projectCode, Long userId);
  33. boolean modifyData(String projectCode);
  34. boolean modifyAllData();
  35. List<CrowdTestProject> getByProject();
  36. }