Browse Source

fix: 删除遗留的bok代码

haha 4 years ago
parent
commit
9e2619c651

+ 1 - 18
seec-oj-server/pom.xml

@@ -48,24 +48,7 @@
             <artifactId>hibernate-core</artifactId>
             <version>5.4.21.Final</version>
         </dependency>
-
-        <dependency>
-            <groupId>cn.seecoder</groupId>
-            <artifactId>seecoder-bok-client</artifactId>
-            <version>0.2.3</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>org.apache.logging.log4j</groupId>
-                    <artifactId>log4j-slf4j-impl</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-
-        <dependency>
-            <groupId>cn.seecoder</groupId>
-            <artifactId>seecoder-bok-common</artifactId>
-            <version>0.2.3</version>
-        </dependency>
+        
         <dependency>
             <groupId>com.nju.edu</groupId>
             <artifactId>PaasMonitor-client</artifactId>

+ 1 - 13
seec-oj-server/src/main/java/cn/seecoder/ojserver/manager/QuestionManager.java

@@ -14,29 +14,17 @@ import java.util.Optional;
 
 @Service
 public class QuestionManager {
-    private final QuestionThirdPartyService questionThirdPartyService;
-
     private final ProblemDAO problemDAO;
 
     private final TestCaseDAO testCaseDAO;
 
-    public QuestionManager(QuestionThirdPartyService questionThirdPartyService,
+    public QuestionManager(
                            ProblemDAO problemDAO,
                            TestCaseDAO testCaseDAO) {
-        this.questionThirdPartyService = questionThirdPartyService;
         this.problemDAO = problemDAO;
         this.testCaseDAO = testCaseDAO;
     }
 
-    public Optional<CompleteQuestionVO> getQuestionById(String id) {
-        Optional<CompleteQuestionVO> res = questionThirdPartyService.getQuestionById(id);
-        if (!res.isPresent()) {
-            throw new ThirdPartyServiceException("C0001", "没有对应的问题Id");
-        } else {
-            return res;
-        }
-    }
-
     public Optional<Problem> getProblemById(Integer id){
         return problemDAO.findById(id);
     }