|
@@ -4,6 +4,7 @@ package com.management.platform.controller;
|
|
import com.management.platform.service.UserService;
|
|
import com.management.platform.service.UserService;
|
|
import com.management.platform.util.HttpRespMsg;
|
|
import com.management.platform.util.HttpRespMsg;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -31,7 +32,7 @@ public class UserController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping("/login")
|
|
@RequestMapping("/login")
|
|
- public HttpRespMsg login(@RequestParam String username, @RequestParam String password){
|
|
|
|
|
|
+ public HttpRespMsg login(@RequestBody String username, @RequestBody String password){
|
|
return userService.login(username, password);
|
|
return userService.login(username, password);
|
|
}
|
|
}
|
|
}
|
|
}
|