Jelajahi Sumber

新增common-api模块

wangliang 4 tahun lalu
induk
melakukan
b4d505056a

+ 4 - 0
distributed-print/pom.xml

@@ -18,6 +18,10 @@
             <groupId>com.qmth.teachcloud.task</groupId>
             <artifactId>teachcloud-task</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.qmth.teachcloud.common.api</groupId>
+            <artifactId>teachcloud-common-api</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-web</artifactId>

+ 6 - 0
pom.xml

@@ -11,6 +11,7 @@
         <module>distributed-print</module>
         <module>distributed-print-business</module>
         <module>teachcloud-common</module>
+        <module>teachcloud-common-api</module>
         <module>teachcloud-task</module>
         <module>teachcloud-report</module>
         <module>teachcloud-report-business</module>
@@ -59,6 +60,11 @@
                 <artifactId>teachcloud-common</artifactId>
                 <version>${project.version}</version>
             </dependency>
+            <dependency>
+                <groupId>com.qmth.teachcloud.common.api</groupId>
+                <artifactId>teachcloud-common-api</artifactId>
+                <version>${project.version}</version>
+            </dependency>
             <dependency>
                 <groupId>com.qmth.distributed.print.business</groupId>
                 <artifactId>distributed-print-business</artifactId>

+ 33 - 0
teachcloud-common-api/.gitignore

@@ -0,0 +1,33 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/

+ 22 - 0
teachcloud-common-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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>com.qmth.teachcloud.common.api</groupId>
+	<artifactId>teachcloud-common-api</artifactId>
+	<version>2.1.0</version>
+	<packaging>jar</packaging>
+
+	<parent>
+		<groupId>com.qmth.distributed.print.service</groupId>
+		<artifactId>distributed-print-service</artifactId>
+		<version>2.1.0</version>
+	</parent>
+
+	<dependencies>
+		<dependency>
+			<groupId>com.qmth.teachcloud.common</groupId>
+			<artifactId>teachcloud-common</artifactId>
+		</dependency>
+	</dependencies>
+</project>

+ 1 - 1
teachcloud-common/src/main/java/com/qmth/teachcloud/common/api/BasicAttachmentController.java → teachcloud-common-api/src/main/java/com/qmth/teachcloud/common/api/api/BasicAttachmentController.java

@@ -1,4 +1,4 @@
-package com.qmth.teachcloud.common.api;
+package com.qmth.teachcloud.common.api.api;
 
 import com.qmth.boot.api.constant.ApiConstant;
 import com.qmth.teachcloud.common.entity.BasicAttachment;

+ 1 - 1
teachcloud-common/src/main/java/com/qmth/teachcloud/common/api/BasicSchoolController.java → teachcloud-common-api/src/main/java/com/qmth/teachcloud/common/api/api/BasicSchoolController.java

@@ -1,4 +1,4 @@
-package com.qmth.teachcloud.common.api;
+package com.qmth.teachcloud.common.api.api;
 
 import com.qmth.boot.api.constant.ApiConstant;
 import com.qmth.teachcloud.common.bean.dto.SchoolDto;

+ 1 - 1
teachcloud-common/src/main/java/com/qmth/teachcloud/common/api/SysConfigController.java → teachcloud-common-api/src/main/java/com/qmth/teachcloud/common/api/api/SysConfigController.java

@@ -1,4 +1,4 @@
-package com.qmth.teachcloud.common.api;
+package com.qmth.teachcloud.common.api.api;
 
 import com.qmth.boot.api.annotation.Aac;
 import com.qmth.boot.api.annotation.BOOL;

+ 1 - 1
teachcloud-common/src/main/java/com/qmth/teachcloud/common/api/SysPrivilegeController.java → teachcloud-common-api/src/main/java/com/qmth/teachcloud/common/api/api/SysPrivilegeController.java

@@ -1,4 +1,4 @@
-package com.qmth.teachcloud.common.api;
+package com.qmth.teachcloud.common.api.api;
 
 import com.qmth.boot.api.constant.ApiConstant;
 import com.qmth.teachcloud.common.bean.dto.PrivilegeDto;

+ 1 - 1
teachcloud-common/src/main/java/com/qmth/teachcloud/common/api/SysRoleController.java → teachcloud-common-api/src/main/java/com/qmth/teachcloud/common/api/api/SysRoleController.java

@@ -1,4 +1,4 @@
-package com.qmth.teachcloud.common.api;
+package com.qmth.teachcloud.common.api.api;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.qmth.boot.api.constant.ApiConstant;

+ 1 - 1
teachcloud-common/src/main/java/com/qmth/teachcloud/common/api/SysUserController.java → teachcloud-common-api/src/main/java/com/qmth/teachcloud/common/api/api/SysUserController.java

@@ -1,4 +1,4 @@
-package com.qmth.teachcloud.common.api;
+package com.qmth.teachcloud.common.api.api;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.qmth.boot.api.constant.ApiConstant;

+ 13 - 0
teachcloud-common-api/src/test/java/com/qmth/teachcloud/common/api/TeachcloudCommonApiApplicationTests.java

@@ -0,0 +1,13 @@
+package com.qmth.teachcloud.common.api;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class TeachcloudCommonApiApplicationTests {
+
+	@Test
+	void contextLoads() {
+	}
+
+}

+ 4 - 0
teachcloud-report/pom.xml

@@ -18,6 +18,10 @@
 			<groupId>com.qmth.teachcloud.task</groupId>
 			<artifactId>teachcloud-task</artifactId>
 		</dependency>
+		<dependency>
+			<groupId>com.qmth.teachcloud.common.api</groupId>
+			<artifactId>teachcloud-common-api</artifactId>
+		</dependency>
 		<dependency>
 			<groupId>org.springframework.boot</groupId>
 			<artifactId>spring-boot-starter-web</artifactId>