12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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<CrowdTestProjectVO> findAllMoreHotProjects();
- List<CrowdTestProjectVO> findByNameLike(String name);
- List<CrowdTestProjectVO> findAll(Pageable pageable);
- List<CrowdTestProjectVO> 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<ProjectDetailsDTO> importMultiProjectsByExcel(List<CrowdTestProject> projects);
- List<CrowdTestProject> generateProjectByExcel(Long userId, MultipartFile file);
- List<RegionalManagerVO> 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<CrowdTestProject> getByProject();
- }
|