This commit is contained in:
2025-03-21 09:38:06 +08:00
parent 69e24fd8ab
commit 587f29f707
224 changed files with 30186 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
}
}
},
}
@@ -0,0 +1,7 @@
{
"name": "gift_info",
"dependencies": {},
"extensions": {
"uni-cloud-jql": {}
}
}