feat(character): 新增删除用户人设接口

新增 /character/delUserCharacter 接口,仅允许删除当前用户的人设,并在错误码中补充删除失败场景。
This commit is contained in:
2025-12-04 16:33:20 +08:00
parent fe19fb8ca2
commit dd7cd517f6
7 changed files with 28 additions and 2 deletions

View File

@@ -19,4 +19,6 @@ public interface KeyboardUserCharacterMapper extends BaseMapper<KeyboardUserChar
void updateSortByIdAndUserId(@Param("sort") Integer[] sort,@Param("userId") long userId);
List<Long> selectSortByUserId(@Param("userId") Long userId);
void deleteByIdAndUserId(@Param("id") Long id, @Param("userId") long userId);
}