24 lines
671 B
Java
24 lines
671 B
Java
package com.bwie.controller;
|
|
|
|
import com.bwie.pojo.User;
|
|
import com.bwie.service.UserService;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@RestController
|
|
@RequestMapping("/user")
|
|
public class UserController {
|
|
@Resource
|
|
private UserService userService;
|
|
|
|
@PostMapping("/selUser")
|
|
public User selUser(@RequestBody User user){
|
|
return userService.selUser(user);
|
|
}
|
|
}
|