From a8f90f717c73d7ff4d2355649f9f161a6f89aa9b Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 05 三月 2024 14:08:15 +0800
Subject: [PATCH] 新增加管理后台功能

---
 cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java
index 482a6be..c2ac606 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/GameController.java
@@ -18,10 +18,7 @@
 import io.swagger.annotations.ApiImplicitParams;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.ResponseBody;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
 import java.math.BigDecimal;
@@ -411,4 +408,15 @@
     }
 
 
+    /**
+     * 根据sutuid获取游戏数据
+     * @param sutuId
+     * @return
+     */
+    @ResponseBody
+    @PostMapping("/getTGameBySutuId")
+    public TGame getTGameBySutuId(@RequestBody String sutuId){
+        return gameService.getOne(new QueryWrapper<TGame>().eq("blue", sutuId).or()
+                .eq("red", sutuId).eq("state", 0));
+    }
 }

--
Gitblit v1.7.1