first commit

This commit is contained in:
编码猿
2024-09-27 01:09:14 +08:00
commit 9420feb4c9
56 changed files with 1811 additions and 0 deletions

1
NodeServer/mysql/.pydio Normal file
View File

@@ -0,0 +1 @@
254af4fe-8f9b-4edd-b6cf-893f0cc8185a

21
NodeServer/mysql/index.js Normal file
View File

@@ -0,0 +1,21 @@
const mysql = require("yn-mysql-utils");
class MSql {
constructor() {
this.db = new mysql({
host : '127.0.0.1',
user : 'root',
password : 'lb714500',
database : 'ScanCodeLogin',
connectionLimit : 10
});
}
async query (params) {
return await this.db.Query({ sql: params.sql, par: params.data })
}
}
module.exports = new MSql();