| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.catalina.User; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | @Resource |
| | | private UserMapper mapper; |
| | | |
| | | @PutMapping |
| | | @PostMapping |
| | | @ApiOperation(value = "切换用户") |
| | | public void changeUser(@RequestParam Long userId){ |
| | | QueryWrapper<UserInf> query = Wrappers.query(); |