|
@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
* 前端控制器
|
|
* 前端控制器
|
|
@@ -26,14 +28,12 @@ public class UserController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 管理员登录网页端
|
|
* 管理员登录网页端
|
|
- *
|
|
|
|
- * @param username 用户名
|
|
|
|
- * @param password 密码
|
|
|
|
|
|
+ * @param map
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping("/login")
|
|
@RequestMapping("/login")
|
|
- public HttpRespMsg login(@RequestBody String username, @RequestBody String password){
|
|
|
|
- return userService.login(username, password);
|
|
|
|
|
|
+ public HttpRespMsg login(@RequestBody Map<String,Object> map){
|
|
|
|
+ return userService.login((String)map.get("username"), (String)map.get("password"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|