mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	【解决todo】image 删除重命名
This commit is contained in:
		| @@ -78,10 +78,9 @@ public class AiImageController { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Operation(summary = "删除【我的】绘画记录") |     @Operation(summary = "删除【我的】绘画记录") | ||||||
|     @DeleteMapping("/delete-my") |     @DeleteMapping("/delete-id-my") | ||||||
|     @Parameter(name = "id", required = true, description = "绘画编号", example = "1024") |     @Parameter(name = "id", required = true, description = "绘画编号", example = "1024") | ||||||
|     public CommonResult<Boolean> deleteMyById(@RequestParam("id") Long id) { |     public CommonResult<Boolean> deleteIdMy(@RequestParam("id") Long id) { | ||||||
|         return success(aiImageService.deleteMyById(id, getLoginUserId())); |         return success(aiImageService.deleteIdMy(id, getLoginUserId())); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -62,6 +62,6 @@ public interface AiImageService { | |||||||
|      * @param id |      * @param id | ||||||
|      * @param loginUserId |      * @param loginUserId | ||||||
|      */ |      */ | ||||||
|     Boolean deleteMyById(Long id, Long loginUserId); |     Boolean deleteIdMy(Long id, Long loginUserId); | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -184,7 +184,7 @@ public class AiImageServiceImpl implements AiImageService { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|     public Boolean deleteMyById(Long id, Long userId) { |     public Boolean deleteIdMy(Long id, Long userId) { | ||||||
|         // 校验是否存在,并获取 image |         // 校验是否存在,并获取 image | ||||||
|         AiImageDO image = validateExists(id); |         AiImageDO image = validateExists(id); | ||||||
|         // 是否属于当前用户 |         // 是否属于当前用户 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 cherishsince
					cherishsince