chore: separate DBresponse classes

This commit is contained in:
buzz-lightsnack-2007 2025-04-07 20:49:39 +08:00
parent 048b42f6cd
commit f6ec954c6f
4 changed files with 54 additions and 47 deletions

17
scripts/response/user.JS Normal file
View file

@ -0,0 +1,17 @@
const DBParser = require(`./parser.JS`);
class User extends DBParser {
/*
Modify user information.
@param {Object} ENTRY the selected entry, or the entries
*/
constructor(DATA) {
super(DATA, {
"_id": "ID",
"username": "name"
});
}
}
module.exports = User;