This commit is contained in:
2025-03-21 09:38:06 +08:00
parent 8e35b74d86
commit f654e16c18
94 changed files with 22503 additions and 0 deletions
@@ -0,0 +1,24 @@
const db = uniCloud.database();
const _ = db.command;
module.exports = {
_before: function () { // 通用预处理器
},
async getGiftList() {
try {
const res = await db.collection("gifts").get();
console.log(res.data);
return {
code: 200,
data: res.data
}
} catch(e) {
console.log(e.message);
return {
code: 500,
msg: e.message
}
}
},
}