| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.Map; |
| | | |
| | | @Api(tags = "系统管理-测试") |
| | | @RestController |
| | | @RequestMapping("/api/unauthorized/external/event") |
| | | //@RequestMapping("/api/unauthorized/external/event") |
| | | @RequestMapping("/API/FMDeviceService") |
| | | public class TestController { |
| | | |
| | | |
| | | @PostMapping("/Push") |
| | | public String push(@RequestBody Map map) { |
| | | System.out.println("FMDeviceService/Push"); |
| | | return ""; |
| | | } |
| | | |
| | | @PostMapping("/HeartBeat") |
| | | public String heartBeat(@RequestBody Map map) { |
| | | System.out.println("FMDeviceService/HeartBeat"); |
| | | |
| | | // return "{\n" + |
| | | // "\"req\": \"reqid\",\n" + |
| | | // "\"cmd\": \"OpenDoor\"\n" + |
| | | // "}\n"; |
| | | return ""; |
| | | } |
| | | |
| | | |
| | | @ApiOperation("添加") |
| | | @PostMapping("/add") |
| | | public String add(@RequestBody EventAddParamDto book) { |