【解决todo】image 删除重命名改为 my delete

This commit is contained in:
cherishsince 2024-05-30 10:23:32 +08:00
parent 0d4b67a9c4
commit 610badf503
2 changed files with 2 additions and 2 deletions

View File

@ -62,6 +62,6 @@ public interface AiImageService {
* @param id
* @param loginUserId
*/
Boolean deleteMy(Long id, Long loginUserId);
Boolean myDelete(Long id, Long loginUserId);
}

View File

@ -184,7 +184,7 @@ public class AiImageServiceImpl implements AiImageService {
}
@Override
public Boolean deleteMy(Long id, Long userId) {
public Boolean myDelete(Long id, Long userId) {
// 校验是否存在并获取 image
AiImageDO image = validateExists(id);
// 是否属于当前用户