Skip to content

Commit

Permalink
chore: 优化delete能力对应的方法名
Browse files Browse the repository at this point in the history
  • Loading branch information
aruis committed Jul 31, 2024
1 parent e057e9e commit d4e08bd
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package net.ximatai.muyun.core.ability.curd;

import jakarta.transaction.Transactional;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.*;
import net.ximatai.muyun.core.ability.IDatabaseAbility;
import net.ximatai.muyun.core.ability.IMetadataAbility;

Expand All @@ -14,7 +12,7 @@ public interface IDeleteAbility extends IDatabaseAbility, IMetadataAbility {
@GET
@Path("/delete/{id}")
@Transactional
default Integer update(@PathParam("id") String id) {
default Integer delete(@PathParam("id") String id) {
Integer num = getDatabase().delete(getDeleteSql(), Map.of("id", id));
assert num == 1;
return num;
Expand Down

0 comments on commit d4e08bd

Please sign in to comment.