From c2fccb01b972176dc3da5a497b5e904025e9e98d Mon Sep 17 00:00:00 2001 From: bsw215583320 <baoshiwei121@163.com> Date: 星期二, 16 四月 2024 15:06:51 +0800 Subject: [PATCH] Merge branch 'master' of http://210.22.126.130:1111/r/dry/herb --- jeecg-module-dry/jeecg-module-dry-biz/src/main/java/org/jeecg/modules/dry/controller/DryHelloController.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) diff --git a/jeecg-module-dry/jeecg-module-dry-biz/src/main/java/org/jeecg/modules/dry/controller/DryHelloController.java b/jeecg-module-dry/jeecg-module-dry-biz/src/main/java/org/jeecg/modules/dry/controller/DryHelloController.java new file mode 100644 index 0000000..413d7dd --- /dev/null +++ b/jeecg-module-dry/jeecg-module-dry-biz/src/main/java/org/jeecg/modules/dry/controller/DryHelloController.java @@ -0,0 +1,60 @@ +package org.jeecg.modules.dry.controller; + +import com.alibaba.fastjson.JSONObject; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.jeecg.common.api.vo.Result; +import org.jeecg.modules.dry.entity.DryHelloEntity; +import org.jeecg.modules.dry.service.IDryHelloService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.Map; + +@Api(tags = "dry绀轰緥") +@RestController +@RequestMapping("/dry") +@Slf4j +public class DryHelloController { + + @Autowired + private IDryHelloService jeecgHelloService; + + @ApiOperation(value = "hello", notes = "瀵瑰鏈嶅姟鎺ュ彛") + @GetMapping(value = "/hello") + public String sayHello() { + log.info(" ---鎴戣璋冪敤浜�--- "); + return jeecgHelloService.hello(); + } + + @ApiOperation(value="鎺ユ敹瀹炴椂鏁版嵁Str", notes="璁惧瀹炴椂鏁版嵁涓婁紶") + @PostMapping("/sendRealTimeData") + public Result<?> realTimeData(String orderVo) { + System.out.println("鎺ユ敹鍒板疄鏃舵暟鎹細" + orderVo.toString()); + log.info("瀹炴椂鏁版嵁锛�"+ orderVo.toString()); + //service.saveRealTimeData(orderVo); + + return Result.ok(); + } + + @ApiOperation(value="鎺ユ敹瀹炴椂鏁版嵁Map", notes="璁惧瀹炴椂鏁版嵁涓婁紶") + @PostMapping("/sendRealTimeDataMap") + public Result<?> realTimeDataMap(@RequestBody Map<String,Object> orderVo) { + System.out.println("鎺ユ敹鍒板疄鏃舵暟鎹細" + orderVo.toString()); + log.info("瀹炴椂鏁版嵁锛�"+ orderVo.toString()); + //service.saveRealTimeData(orderVo); + + return Result.ok(); + } + + @ApiOperation(value="鎺ユ敹瀹炴椂鏁版嵁Json", notes="璁惧瀹炴椂鏁版嵁涓婁紶") + @PostMapping("/sendRealTimeDataJson") + public Result<?> realTimeDataJson(@RequestBody JSONObject orderVo) { + System.out.println("鎺ユ敹鍒板疄鏃舵暟鎹細" + orderVo.toJSONString()); + log.info("瀹炴椂鏁版嵁锛�"+orderVo.toJSONString()); + //service.saveRealTimeData(orderVo); + + return Result.ok(); + } +} -- Gitblit v1.9.3