From 78a4df6ad36a5cdf18d40ef539e0ce9609c71b4f Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期六, 07 十月 2023 15:33:28 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai --- cloud-server-other/src/main/java/com/dsh/other/controller/BallController.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/BallController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/BallController.java new file mode 100644 index 0000000..4012ed7 --- /dev/null +++ b/cloud-server-other/src/main/java/com/dsh/other/controller/BallController.java @@ -0,0 +1,50 @@ +package com.dsh.other.controller; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.dsh.other.entity.*; +import com.dsh.other.feignclient.model.AdvertisementChangeStateDTO; +import com.dsh.other.feignclient.model.AdvertisementQuery; +import com.dsh.other.model.BannerVo; +import com.dsh.other.service.GameService; +import com.dsh.other.service.IBannerService; +import com.dsh.other.util.ResultUtil; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * @author zhibing.pu + * @date 2023/7/11 17:48 + */ +@RestController +@RequestMapping("") +public class BallController { + @Autowired + private GameService gameService; + + @ResponseBody + @PostMapping("/student/webStudentList") + public List<Game> list(@RequestBody BallQueryDto ballQueryDto){ + List<Game> games = gameService.queryAll(ballQueryDto); + return games; + } + + + @ResponseBody + @PostMapping("/save") + public void save(@RequestBody Game game){ + + gameService.save(game); + } + + + + +} -- Gitblit v1.7.1