|
@@ -1,7 +1,6 @@
|
|
package com.management.platform.controller;
|
|
package com.management.platform.controller;
|
|
|
|
|
|
|
|
|
|
-import com.management.platform.entity.User;
|
|
|
|
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;
|
|
@@ -27,12 +26,13 @@ public class UserController {
|
|
/**
|
|
/**
|
|
* 管理员登录网页端
|
|
* 管理员登录网页端
|
|
*
|
|
*
|
|
- * 用户名 phone
|
|
|
|
- * 密码 password
|
|
|
|
|
|
+ * @param username 用户名
|
|
|
|
+ * @param password 密码
|
|
|
|
+ * @return
|
|
*/
|
|
*/
|
|
@RequestMapping("/login")
|
|
@RequestMapping("/login")
|
|
- public HttpRespMsg login(User user){
|
|
|
|
- return userService.login(user.getPhone(), user.getPassword());
|
|
|
|
|
|
+ public HttpRespMsg login(@RequestParam String username, @RequestParam String password){
|
|
|
|
+ return userService.login(username, password);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|