用户资料修改接口改成post
This commit is contained in:
parent
afe830f313
commit
6899561ed0
@ -13,11 +13,7 @@ import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
|
|||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.PutMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户资料管理.
|
* 用户资料管理.
|
||||||
@ -116,7 +112,7 @@ public class UserProfileRestController extends BaseController {
|
|||||||
* @eo.method put
|
* @eo.method put
|
||||||
* @eo.request-type json
|
* @eo.request-type json
|
||||||
*/
|
*/
|
||||||
@PutMapping("/update")
|
@PostMapping("/update")
|
||||||
public UserProfileDTO updateUserProfile(@RequestBody @Validated UserProfileModifyCmd cmd) {
|
public UserProfileDTO updateUserProfile(@RequestBody @Validated UserProfileModifyCmd cmd) {
|
||||||
return userProfileService.updateUserProfile(cmd);
|
return userProfileService.updateUserProfile(cmd);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user