post 변경
This commit is contained in:
@@ -48,7 +48,7 @@ public class UserProfileController {
|
||||
@PostMapping("/user/{id}")
|
||||
// public HashMap<String, Object> putUserProfile(@PathVariable String id, @RequestParam String name,
|
||||
// public void putUserProfile(@PathVariable String id, @RequestParam String name,
|
||||
public List<UserProfile> putUserProfile(@PathVariable String id, @RequestParam("name") String name,
|
||||
public List<UserProfile> postUserProfile(@PathVariable String id, @RequestParam String name,
|
||||
@RequestParam String phone, @RequestParam String address,
|
||||
@RequestParam MultipartFile upfile) {
|
||||
|
||||
@@ -122,7 +122,7 @@ public class UserProfileController {
|
||||
}
|
||||
|
||||
@PutMapping("/user/{id}")
|
||||
public void postUserProfile(@PathVariable String id, @RequestParam String name,
|
||||
public void putUserProfile(@PathVariable String id, @RequestParam String name,
|
||||
@RequestParam String phone, @RequestParam String address, @RequestParam String filepath) {
|
||||
mapper.updateUserProfile(id, name, phone, address, filepath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user