feat:增加patch姿势
This commit is contained in:
parent
90c9726ec4
commit
f5116d677a
@ -70,7 +70,7 @@ public abstract class BaseController<T extends Domain, Q extends Qo<T>> implemen
|
|||||||
|
|
||||||
@PatchMapping("{id}")
|
@PatchMapping("{id}")
|
||||||
@Operation.Update
|
@Operation.Update
|
||||||
public Result<T> patch(T entity, @CurrentUser User user) {
|
public Result<T> patch(@RequestBody T entity, @CurrentUser User user) {
|
||||||
userContext.setUser(user);
|
userContext.setUser(user);
|
||||||
return Result.accept(service.updateSelectiveById(entity));
|
return Result.accept(service.updateSelectiveById(entity));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user