whyclxw
2024-04-28 b25b814a949d2065a61fd3167206ffb51a57af65
src/main/java/com/whyc/controller/ChangeUserController.java
@@ -11,10 +11,7 @@
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;
@@ -26,7 +23,7 @@
    @Resource
    private UserMapper mapper;
    @PutMapping
    @PostMapping
    @ApiOperation(value = "切换用户")
    public void changeUser(@RequestParam Long userId){
        QueryWrapper<UserInf> query = Wrappers.query();