|
@@ -1,67 +0,0 @@
|
|
|
-//package cn.iselab.mooctest.site.rpc.Oauth2.impl;
|
|
|
|
|
-//
|
|
|
|
|
-//import cn.iselab.mooctest.site.common.constant.SubsiteConstants;
|
|
|
|
|
-//import cn.iselab.mooctest.site.models.Task;
|
|
|
|
|
-//import cn.iselab.mooctest.site.rpc.oauth2.api.ExamService;
|
|
|
|
|
-//import cn.iselab.mooctest.site.rpc.oauth2.data.*;
|
|
|
|
|
-//import cn.iselab.mooctest.site.web.data.fromDev.PluginResultVO;
|
|
|
|
|
-//import cn.iselab.mooctest.site.web.data.fromKibug.ReportScriptResultVO;
|
|
|
|
|
-//import cn.iselab.mooctest.site.web.data.fromKibug.ReportVO;
|
|
|
|
|
-//import cn.iselab.mooctest.site.web.logic.ReportLogic;
|
|
|
|
|
-//import cn.iselab.mooctest.site.web.logic.fromDev.PluginLogic;
|
|
|
|
|
-//import cn.iselab.mooctest.site.web.util.Converter;
|
|
|
|
|
-//import com.alibaba.dubbo.config.annotation.Service;
|
|
|
|
|
-//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
-//
|
|
|
|
|
-//import java.util.ArrayList;
|
|
|
|
|
-//import java.util.List;
|
|
|
|
|
-//
|
|
|
|
|
-///**
|
|
|
|
|
-// * Created by shanshan on 2017/8/14.
|
|
|
|
|
-// */
|
|
|
|
|
-//@Service(version = "1.0.7")
|
|
|
|
|
-//public class ExamServiceImpl implements ExamService {
|
|
|
|
|
-// @Autowired
|
|
|
|
|
-// private ReportLogic reportLogic;
|
|
|
|
|
-// @Autowired
|
|
|
|
|
-// private PluginLogic pluginLogic;
|
|
|
|
|
-//
|
|
|
|
|
-// @Override
|
|
|
|
|
-// public TaskVO getCaseList(Long userId, Long taskId, Long subsiteId) throws Exception {
|
|
|
|
|
-// PluginResultVO vo = pluginLogic.getCaseList(userId, taskId, new Long(SubsiteConstants.KIKBUG_SUBSITE_ID));
|
|
|
|
|
-// TaskVO taskVO = Converter.convert(TaskVO.class, vo);
|
|
|
|
|
-// List<CaseItemVO> caseList = new ArrayList<>();
|
|
|
|
|
-// vo.getCases().stream().forEach(caseItem -> {
|
|
|
|
|
-// caseList.add(Converter.convert(CaseItemVO.class, caseItem));
|
|
|
|
|
-// });
|
|
|
|
|
-// taskVO.setCases(caseList);
|
|
|
|
|
-// return taskVO;
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// @Override
|
|
|
|
|
-// public KibugCaseVO getKibugCase(Long userId, Long taskId, Long caseId) throws Exception {
|
|
|
|
|
-// cn.iselab.mooctest.site.web.data.fromKibug.KibugCaseVO kibugCaseVO = pluginLogic.getKibugCase(userId,taskId,caseId);
|
|
|
|
|
-// return Converter.convert(KibugCaseVO.class, kibugCaseVO);
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// @Override
|
|
|
|
|
-// public Long createReport(ReportVO4Oauth vo) throws Exception {
|
|
|
|
|
-// ReportVO reportVO = Converter.convert(ReportVO.class, vo);
|
|
|
|
|
-// return reportLogic.createReport(reportVO);
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// @Override
|
|
|
|
|
-// public void updateReport(ReportVO4Oauth vo) throws Exception {
|
|
|
|
|
-// if(vo.getId()==null){
|
|
|
|
|
-// throw new IllegalArgumentException("no reportId");
|
|
|
|
|
-// }
|
|
|
|
|
-// ReportVO reportVO = Converter.convert(ReportVO.class, vo);
|
|
|
|
|
-// reportLogic.updateReport(reportVO);
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// @Override
|
|
|
|
|
-// public void recordReportScript(long reportId, ReportScriptResultVO4Oauth vo) throws Exception {
|
|
|
|
|
-// ReportScriptResultVO reportScriptResultVO = Converter.convert(ReportScriptResultVO.class, vo);
|
|
|
|
|
-// reportLogic.recordReportScript(reportId, reportScriptResultVO);
|
|
|
|
|
-// }
|
|
|
|
|
-//}
|
|
|