package com.mooctest.crowd.site.service; import com.mooctest.crowd.domain.domainobject.CrowdTestProject; import com.mooctest.crowd.site.command.CrowdTestProjectCommand; import com.mooctest.crowd.site.command.GenerateProjectCommand; import com.mooctest.crowd.site.data.dto.ProjectDetailsDTO; import com.mooctest.crowd.site.data.vo.CrowdTestProjectVO; import com.mooctest.crowd.site.data.vo.RegionalManagerVO; import org.springframework.data.domain.Pageable; import org.springframework.web.multipart.MultipartFile; import java.util.List; /** * @author: Diors.Po * @Email: 171256175@qq.com * @date 2019-07-29 10:49 */ public interface CrowdProjectService { List findAllMoreHotProjects(); List findByNameLike(String name); List findAll(Pageable pageable); List findAll(); ProjectDetailsDTO getProjectDetails(String projectCode, Long userId); ProjectDetailsDTO createCrowdProject(CrowdTestProjectCommand command); ProjectDetailsDTO updateProject(String projectCode, CrowdTestProjectCommand crowdTestProjectCommand); void deleteProject(Long projectId, Long userId); ProjectDetailsDTO generateProjectWithData(GenerateProjectCommand command); List importMultiProjectsByExcel(List projects); List generateProjectByExcel(Long userId, MultipartFile file); List getRegionalManagerList(); ProjectDetailsDTO receiveProject(String projectCode, Long userId); void rejectProject(String projectCode, Long userId); ProjectDetailsDTO commitProject(String projectCode, Long userId); ProjectDetailsDTO confirmFinished(String projectCode, Long userId); boolean modifyData(String projectCode); boolean modifyAllData(); List getByProject(); }