From 805f6985cbdfd6d68e77d505aa9bedd4cb866703 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Thu, 25 May 2023 12:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NewCitizenQueryResult/.vscode/settings.json | 2 +- code/backend/NewCitizenQueryResult/pom.xml | 4 ++-- .../controllers/NewCitizen/QueryResultController.java | 11 +++++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/code/backend/NewCitizenQueryResult/.vscode/settings.json b/code/backend/NewCitizenQueryResult/.vscode/settings.json index c5f3f6b..e0f15db 100644 --- a/code/backend/NewCitizenQueryResult/.vscode/settings.json +++ b/code/backend/NewCitizenQueryResult/.vscode/settings.json @@ -1,3 +1,3 @@ { - "java.configuration.updateBuildConfiguration": "interactive" + "java.configuration.updateBuildConfiguration": "automatic" } \ No newline at end of file diff --git a/code/backend/NewCitizenQueryResult/pom.xml b/code/backend/NewCitizenQueryResult/pom.xml index e7dc6c0..d698642 100644 --- a/code/backend/NewCitizenQueryResult/pom.xml +++ b/code/backend/NewCitizenQueryResult/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 com.cpic.xim - desktop_archievement_backend + new_citizen_backend war 1.0-SNAPSHOT desktop_archievement_backend Maven Webapp @@ -102,7 +102,7 @@ - desktop_archievement_backend + new_citizen_backend org.apache.maven.plugins diff --git a/code/backend/NewCitizenQueryResult/src/main/java/com/cpic/xim/web/controllers/NewCitizen/QueryResultController.java b/code/backend/NewCitizenQueryResult/src/main/java/com/cpic/xim/web/controllers/NewCitizen/QueryResultController.java index e5649ab..e8fbe5b 100644 --- a/code/backend/NewCitizenQueryResult/src/main/java/com/cpic/xim/web/controllers/NewCitizen/QueryResultController.java +++ b/code/backend/NewCitizenQueryResult/src/main/java/com/cpic/xim/web/controllers/NewCitizen/QueryResultController.java @@ -1,16 +1,19 @@ package com.cpic.xim.web.controllers.NewCitizen; +import java.net.http.HttpResponse; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; +// 9ILpXKFSHckH1g7h + @Controller public class QueryResultController { @RequestMapping("/save_score.do") - public void saveQueryResult( @RequestParam QueryResultRequest result ) - {{ - - }} + public void saveQueryResult(HttpResponse response, @RequestParam QueryResultRequest result ) + { + response. + } } \ No newline at end of file