Kaynağa Gözat

add rmi examcloud-core-print-api.

deason 6 yıl önce
ebeveyn
işleme
203e37f9f6

+ 22 - 0
examcloud-core-print-api-client/pom.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>examcloud-core-print-api-client</artifactId>
+    <packaging>jar</packaging>
+
+    <parent>
+        <groupId>cn.com.qmth.examcloud.rmi</groupId>
+        <artifactId>examcloud-rmi</artifactId>
+        <version>2.0-SNAPSHOT</version>
+    </parent>
+
+    <dependencies>
+        <dependency>
+            <groupId>cn.com.qmth.examcloud.rmi</groupId>
+            <artifactId>examcloud-core-print-api</artifactId>
+            <version>${examcloud.version}</version>
+        </dependency>
+    </dependencies>
+
+</project>

+ 23 - 0
examcloud-core-print-api-client/src/main/java/cn/com/qmth/examcloud/core/print/api/client/PrintCloudClientSupport.java

@@ -0,0 +1,23 @@
+/*
+ * *************************************************
+ * Copyright (c) 2018 QMTH. All Rights Reserved.
+ * Created by Deason on 2018-08-16 16:20:56.
+ * *************************************************
+ */
+
+package cn.com.qmth.examcloud.core.print.api.client;
+
+import cn.com.qmth.examcloud.commons.web.support.CloudClientSupport;
+
+/**
+ * @author: fengdesheng
+ * @since: 2018/10/22
+ */
+public abstract class PrintCloudClientSupport extends CloudClientSupport {
+
+    @Override
+    public String getUrlPrefix() {
+        return "http://EC-CORE-PRINT/api/cloud/ecs_prt/";
+    }
+
+}

+ 38 - 0
examcloud-core-print-api-client/src/main/java/cn/com/qmth/examcloud/core/print/api/client/PrintingProjectCloudServiceClient.java

@@ -0,0 +1,38 @@
+/*
+ * *************************************************
+ * Copyright (c) 2018 QMTH. All Rights Reserved.
+ * Created by Deason on 2018-08-16 16:19:24.
+ * *************************************************
+ */
+
+package cn.com.qmth.examcloud.core.print.api.client;
+
+import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
+import cn.com.qmth.examcloud.core.print.api.PrintingProjectCloudService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.web.client.RestTemplate;
+
+/**
+ * @author: fengdesheng
+ * @since: 2018/10/22
+ */
+@Service("oeExamStudentCloudService")
+public class PrintingProjectCloudServiceClient extends PrintCloudClientSupport implements PrintingProjectCloudService {
+    private static final long serialVersionUID = -1;
+    @Autowired
+    private RestTemplate restTemplate;
+    @Autowired
+    private RedisClient redisClient;
+
+    @Override
+    protected RedisClient getRedisClient() {
+        return redisClient;
+    }
+
+    @Override
+    protected RestTemplate getRestTemplate() {
+        return restTemplate;
+    }
+
+}

+ 22 - 0
examcloud-core-print-api/pom.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>examcloud-core-print-api</artifactId>
+    <packaging>jar</packaging>
+
+    <parent>
+        <groupId>cn.com.qmth.examcloud.rmi</groupId>
+        <artifactId>examcloud-rmi</artifactId>
+        <version>2.0-SNAPSHOT</version>
+    </parent>
+
+    <dependencies>
+        <dependency>
+            <groupId>cn.com.qmth.examcloud.commons</groupId>
+            <artifactId>examcloud-commons-web</artifactId>
+            <version>${examcloud.version}</version>
+        </dependency>
+    </dependencies>
+
+</project>

+ 18 - 0
examcloud-core-print-api/src/main/java/cn/com/qmth/examcloud/core/print/api/PrintingProjectCloudService.java

@@ -0,0 +1,18 @@
+/*
+ * *************************************************
+ * Copyright (c) 2018 QMTH. All Rights Reserved.
+ * Created by Deason on 2018-10-22 18:11:57.
+ * *************************************************
+ */
+
+package cn.com.qmth.examcloud.core.print.api;
+
+import cn.com.qmth.examcloud.commons.web.cloud.api.CloudService;
+
+/**
+ * @author: fengdesheng
+ * @since: 2018/10/22
+ */
+public interface PrintingProjectCloudService extends CloudService {
+
+}

+ 37 - 34
pom.xml

@@ -1,49 +1,52 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-	<modelVersion>4.0.0</modelVersion>
-	<parent>
-		<groupId>cn.com.qmth.examcloud</groupId>
-		<artifactId>examcloud-parent</artifactId>
-		<version>2.0-SNAPSHOT</version>
-	</parent>
-	<groupId>cn.com.qmth.examcloud.rmi</groupId>
-	<artifactId>examcloud-rmi</artifactId>
-	<packaging>pom</packaging>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>cn.com.qmth.examcloud</groupId>
+        <artifactId>examcloud-parent</artifactId>
+        <version>2.0-SNAPSHOT</version>
+    </parent>
+    <groupId>cn.com.qmth.examcloud.rmi</groupId>
+    <artifactId>examcloud-rmi</artifactId>
+    <packaging>pom</packaging>
 
-	<modules>
-		<module>examcloud-core-basic-api</module>
-		<module>examcloud-core-basic-api-client</module>
+    <modules>
+        <module>examcloud-core-basic-api</module>
+        <module>examcloud-core-basic-api-client</module>
 
-		<module>examcloud-core-examwork-api</module>
-		<module>examcloud-core-examwork-api-client</module>
+        <module>examcloud-core-examwork-api</module>
+        <module>examcloud-core-examwork-api-client</module>
 
-		<module>examcloud-exchange-inner-api</module>
-		<module>examcloud-exchange-inner-api-client</module>
+        <module>examcloud-exchange-inner-api</module>
+        <module>examcloud-exchange-inner-api-client</module>
 
-		<module>examcloud-task-api</module>
-		<module>examcloud-task-api-client</module>
+        <module>examcloud-task-api</module>
+        <module>examcloud-task-api-client</module>
 
-		<module>examcloud-core-oe-admin-api</module>
-		<module>examcloud-core-oe-admin-api-client</module>
+        <module>examcloud-core-oe-admin-api</module>
+        <module>examcloud-core-oe-admin-api-client</module>
 
-		<module>examcloud-core-questions-api</module>
-		<module>examcloud-core-questions-api-client</module>
+        <module>examcloud-core-questions-api</module>
+        <module>examcloud-core-questions-api-client</module>
 
-		<module>examcloud-core-oe-student-face-api</module>
-		<module>examcloud-core-oe-student-face-api-client</module>
+        <module>examcloud-core-oe-student-face-api</module>
+        <module>examcloud-core-oe-student-face-api-client</module>
 
-		<module>examcloud-core-oe-student-api</module>
-		<module>examcloud-core-oe-student-api-client</module>
+        <module>examcloud-core-oe-student-api</module>
+        <module>examcloud-core-oe-student-api-client</module>
 
-		<module>examcloud-core-oe-websocket-api</module>
-		<module>examcloud-core-oe-websocket-api-client</module>
+        <module>examcloud-core-oe-websocket-api</module>
+        <module>examcloud-core-oe-websocket-api-client</module>
 
-		<module>examcloud-core-marking-api</module>
-		<module>examcloud-core-marking-api-client</module>
+        <module>examcloud-core-marking-api</module>
+        <module>examcloud-core-marking-api-client</module>
 
-		<module>examcloud-commons-api</module>
-		<module>examcloud-commons-api-client</module>
+        <module>examcloud-commons-api</module>
+        <module>examcloud-commons-api-client</module>
 
-	</modules>
+        <module>examcloud-core-print-api</module>
+        <module>examcloud-core-print-api-client</module>
+    </modules>
 
 </project>