mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-26 05:39:45 +08:00
✨ 参考材料WIKI完善背包物品处理
This commit is contained in:
@@ -67,6 +67,15 @@ async function getAllUid(): Promise<Array<number>> {
|
||||
return res.map((u) => u.uid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除指定UID数据
|
||||
* @since Beta v0.9.0
|
||||
*/
|
||||
async function delUid(uid: number): Promise<void> {
|
||||
const db = await TGSqlite.getDB();
|
||||
await db.execute("DELETE FROM UserBagMaterial WHERE uid = ?;", [uid]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析表格数据
|
||||
* @since Beta v0.9.0
|
||||
@@ -141,6 +150,7 @@ async function saveYaeData(
|
||||
|
||||
const TSUserBagMaterial = {
|
||||
getAllUid,
|
||||
delUid,
|
||||
saveYaeData,
|
||||
getMaterial,
|
||||
insertMaterial,
|
||||
|
||||
Reference in New Issue
Block a user