xiaochan 1 місяць тому
батько
коміт
06183b868d

+ 0 - 45
pom.xml

@@ -17,8 +17,6 @@
         <java.version>1.8</java.version>
         <druid.version>1.1.10</druid.version>
         <!-- 添加 Kotlin 版本属性 -->
-        <kotlin.version>2.1.0</kotlin.version>
-
     </properties>
     <dependencies>
         <!--工具类        -->
@@ -251,21 +249,6 @@
             </systemPath>
         </dependency>
 
-
-        <!-- 添加 Kotlin 标准库 -->
-        <dependency>
-            <groupId>org.jetbrains.kotlin</groupId>
-            <artifactId>kotlin-stdlib-jdk8</artifactId>
-            <version>${kotlin.version}</version>
-        </dependency>
-
-        <!-- 添加 Kotlin 反射库 -->
-        <dependency>
-            <groupId>org.jetbrains.kotlin</groupId>
-            <artifactId>kotlin-reflect</artifactId>
-            <version>${kotlin.version}</version>
-        </dependency>
-
     </dependencies>
 
     <dependencyManagement>
@@ -283,34 +266,6 @@
     <build>
         <plugins>
 
-            <plugin>
-                <groupId>org.jetbrains.kotlin</groupId>
-                <artifactId>kotlin-maven-plugin</artifactId>
-                <version>${kotlin.version}</version>
-                <executions>
-                    <execution>
-                        <id>compile</id>
-                        <phase>compile</phase>
-                        <goals>
-                            <goal>compile</goal>
-                        </goals>
-                    </execution>
-                    <execution>
-                        <id>test-compile</id>
-                        <phase>test-compile</phase>
-                        <goals>
-                            <goal>test-compile</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <configuration>
-                    <jvmTarget>${java.version}</jvmTarget>
-                    <args>
-                        <arg>-Xjsr305=strict</arg> <!-- 启用严格的空安全检查 -->
-                    </args>
-                </configuration>
-            </plugin>
-
             <!-- 确保 Kotlin 编译在 Java 之前 -->
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>

+ 0 - 1
src/main/java/thyyxxk/webserver/controller/archive/ArchiveController.java

@@ -1,6 +1,5 @@
 package thyyxxk.webserver.controller.archive;
 
-import com.alibaba.fastjson.JSONObject;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 import thyyxxk.webserver.config.auth.PassToken;

+ 0 - 27
src/main/kotlin/thyyxxk/webserver/TestController.kt

@@ -1,27 +0,0 @@
-package thyyxxk.webserver
-
-import org.slf4j.Logger
-import org.slf4j.LoggerFactory
-import org.springframework.web.bind.annotation.GetMapping
-import org.springframework.web.bind.annotation.RequestMapping
-import org.springframework.web.bind.annotation.RestController
-import thyyxxk.webserver.config.auth.PassToken
-import thyyxxk.webserver.dao.his.xcTest.TestDao
-import thyyxxk.webserver.entity.ResultVo
-import thyyxxk.webserver.utils.R
-
-@RestController
-@RequestMapping("/kt/test")
-class TestController(private val testDao: TestDao) {
-    companion object {
-        private val log: Logger = LoggerFactory.getLogger(TestController::class.java)
-    }
-
-
-    @GetMapping("/test1")
-    @PassToken
-    fun test(): ResultVo<String> {
-        val patientInfo = testDao.patientInfo("506388023")
-        return R.ok("TEST")
-    }
-}