|
@@ -14,10 +14,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-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 org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
@@ -81,7 +78,7 @@ public class UserController {
|
|
|
return Result.success();
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/password")
|
|
|
+ @PutMapping("/password")
|
|
|
@ApiOperation(value = "修改密码")
|
|
|
public Result update(@RequestBody PasswordDTO passwordDTO) {
|
|
|
log.info("修改密码:{}", passwordDTO.getId());
|