From 97834eed504fa4d18bca16c24a4003f198ad6344 Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Mon, 07 May 2018 22:05:48 +0800 Subject: [PATCH] test --- src/main/java/com/moral/controller/MobileController.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/moral/controller/MobileController.java b/src/main/java/com/moral/controller/MobileController.java index 61740c2..47007b4 100644 --- a/src/main/java/com/moral/controller/MobileController.java +++ b/src/main/java/com/moral/controller/MobileController.java @@ -108,7 +108,7 @@ * @param mac the mac * @return the device by mac */ - @PostMapping("getEquInfoByMac") + @GetMapping("getEquInfoByMac") public AppData<Device> getDeviceByMac(@RequestParam(value="mac", required=true)String mac) { Device device = deviceService.getDeviceByMac(mac); return new AppData<Device>(device); @@ -120,7 +120,7 @@ * @param request the area name * @return the monitor points by area name */ - @PostMapping("getMpointsByAreaName") + @GetMapping("getMpointsByAreaName") public AppData<List<MonitorPoint>> getMonitorPointsByAreaName(HttpServletRequest request) { Map<String, Object> parameters = getParametersStartingWith(request, null); List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsByAreaName(parameters); @@ -133,7 +133,7 @@ * @param request the area name * @return the organizations by area name */ - @PostMapping("getOrgsByAreaName") + @GetMapping("getOrgsByAreaName") public AppData<List<Organization>> getOrganizationsByAreaName(HttpServletRequest request) { Map<String, Object> parameters = getParametersStartingWith(request, null); List<Organization> organizations = organizationService.getOrganizationsByAreaName(parameters); -- Gitblit v1.8.0