支持删除集合条目

This commit is contained in:
Sakurasan
2026-07-07 15:05:19 +08:00
parent 5153fa28de
commit 0ba7952082
2 changed files with 279 additions and 83 deletions
+6
View File
@@ -95,6 +95,12 @@ export const collectionsApi = {
body: JSON.stringify(stock),
});
},
removeStock(collectionId: number, stockCode: string): Promise<{ success: boolean }> {
return apiFetch(`/api/collections/${collectionId}/stocks/${stockCode}`, {
method: "DELETE",
});
},
};
// 分享链接 API