TASK:cloud;
This commit is contained in:
@@ -197,6 +197,12 @@ public class SavedCollectionController {
|
||||
return Response.success(userLikeGroupService.toProductImageElementUpload(file, projectId));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "toProductImageElementDelete")
|
||||
@PostMapping("/toProductImageElementDelete")
|
||||
public Response<Boolean> toProductImageElementDelete(@RequestParam(value = "id") Long id) {
|
||||
return Response.success(userLikeGroupService.toProductImageElementDelete(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "productImageLike")
|
||||
@PostMapping("/productImageLike")
|
||||
public Response<Long> productImageLike(@Valid @RequestBody ProductImageLikeDTO productImageLikeDTO) {
|
||||
|
||||
@@ -115,4 +115,6 @@ public interface UserLikeGroupService extends IService<UserLikeGroup> {
|
||||
void relightBatch(String taskId, String url, String progress);
|
||||
|
||||
Boolean collectionLikeUpdate(CollectionLikeUpdateDTO collectionLikeUpdateDTO);
|
||||
|
||||
Boolean toProductImageElementDelete(Long id);
|
||||
}
|
||||
|
||||
@@ -2517,4 +2517,12 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean toProductImageElementDelete(Long id) {
|
||||
ToProductElement toProductElement = toProductElementMapper.selectById(id);
|
||||
toProductElement.setProjectId(null);
|
||||
toProductElementMapper.updateById(toProductElement);
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user