From b9baa2c78a067e9e67c7c824a28c8fd36682ecc8 Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Tue, 08 May 2018 13:58:14 +0800 Subject: [PATCH] test --- src/main/java/com/moral/controller/MobileController.java | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/moral/controller/MobileController.java b/src/main/java/com/moral/controller/MobileController.java index dec5579..cf2702f 100644 --- a/src/main/java/com/moral/controller/MobileController.java +++ b/src/main/java/com/moral/controller/MobileController.java @@ -68,7 +68,7 @@ * @param newpassword the newpassword * @return the result bean */ - @PostMapping("upPassword") + @RequestMapping("upPassword") public AppData<OperateUser> updatePassword(Integer uid, String password, String newpassword) { OperateUser operateUser = operateUserService.updatePassword(uid,password,newpassword); return new AppData<OperateUser>(operateUser); @@ -86,7 +86,7 @@ * @param monitorpoint * @return */ - @PostMapping("reportDevice") + @RequestMapping("reportDevice") public AppData<String> installDevice( HttpServletRequest request , @RequestParam(value ="uid") Integer uid, @@ -118,7 +118,7 @@ * @param pageSize the page size * @return the install devices by operate user */ - @PostMapping("myRelease") + @RequestMapping("myRelease") public AppData<List<Device>> getInstallDevicesByOperateUser(@RequestParam(value="uid", required=true)Integer uid, @RequestParam(defaultValue="0")Integer pageIndex, @RequestParam(defaultValue="0")Integer pageSize) { List<Device> devices = deviceService.getInstallDevicesByOperateUser(uid, pageIndex, pageSize); @@ -131,7 +131,7 @@ * @param mac the mac * @return the device by mac */ - @GetMapping("getEquInfoByMac") + @RequestMapping("getEquInfoByMac") public AppData<Map> getDeviceByMac(@RequestParam(value="mac", required=true)String mac) { Device device = deviceService.getDeviceByMac(mac,false);//��������������� Map<String,Object> deviceMap = new HashMap<>(BeanMap.create(device)); @@ -146,7 +146,7 @@ * @param request the area name * @return the monitor points by area name */ - @GetMapping("getMpointsByAreaName") + @RequestMapping("getMpointsByAreaName") public AppData<List<MonitorPoint>> getMonitorPointsByAreaName(HttpServletRequest request) { Map<String, Object> parameters = getParametersStartingWith(request, null); List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsByAreaName(parameters); @@ -159,7 +159,7 @@ * @param request the area name * @return the organizations by area name */ - @GetMapping("getOrgsByAreaName") + @RequestMapping("getOrgsByAreaName") public AppData<List<Organization>> getOrganizationsByAreaName(HttpServletRequest request) { Map<String, Object> parameters = getParametersStartingWith(request, null); List<Organization> organizations = organizationService.getOrganizationsByAreaName(parameters); @@ -172,7 +172,7 @@ * @param mobile * @return */ - @PostMapping("sendSms") + @RequestMapping("sendSms") public AppData<String> sendSms(String mobile) { AppData apiData = new AppData(); @@ -222,7 +222,7 @@ * @param code * @return */ - @PostMapping("password") + @RequestMapping("password") public AppData<String> password(String username, String password, String code){ AppData apiData = new AppData(); @@ -257,7 +257,7 @@ } } - @GetMapping("profession") + @RequestMapping("profession") public AppData<List<Profession>> profession(){ List<Profession> professions = professionService.getProfessiontList(); -- Gitblit v1.8.0