feat:增加patch姿势

This commit is contained in:
wangyu 2021-10-21 23:29:52 +08:00
parent 90c9726ec4
commit f5116d677a

View File

@ -70,7 +70,7 @@ public abstract class BaseController<T extends Domain, Q extends Qo<T>> implemen
@PatchMapping("{id}")
@Operation.Update
public Result<T> patch(T entity, @CurrentUser User user) {
public Result<T> patch(@RequestBody T entity, @CurrentUser User user) {
userContext.setUser(user);
return Result.accept(service.updateSelectiveById(entity));
}