post 변경
This commit is contained in:
parent
88401ac27e
commit
92e917c01a
|
|
@ -48,7 +48,7 @@ public class UserProfileController {
|
||||||
@PostMapping("/user/{id}")
|
@PostMapping("/user/{id}")
|
||||||
// public HashMap<String, Object> putUserProfile(@PathVariable String id, @RequestParam String name,
|
// public HashMap<String, Object> putUserProfile(@PathVariable String id, @RequestParam String name,
|
||||||
// public void 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 String phone, @RequestParam String address,
|
||||||
@RequestParam MultipartFile upfile) {
|
@RequestParam MultipartFile upfile) {
|
||||||
|
|
||||||
|
|
@ -122,7 +122,7 @@ public class UserProfileController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/user/{id}")
|
@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) {
|
@RequestParam String phone, @RequestParam String address, @RequestParam String filepath) {
|
||||||
mapper.updateUserProfile(id, name, phone, address, filepath);
|
mapper.updateUserProfile(id, name, phone, address, filepath);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue