first commit

This commit is contained in:
Mojtaba Khorshidkolah
2026-03-05 09:39:35 +03:30
commit a9bd7e890a
9 changed files with 2195 additions and 0 deletions

25
config/service.js Normal file
View File

@@ -0,0 +1,25 @@
const {initPool} = require("./db") ;
class ServiceHanlderClass {
async getData(){
const pool = await initPool();
try {
const result = await pool.request().query("EXEC TDP.dbo.SP_ListFullPatientStatus01 ");
// await pool.close();
// pool=null;
// console.log('closed')
return result;
} catch (error) {
console.log(error)
throw new Error(error)
}
}
}
const ServiceHandler = new ServiceHanlderClass();
module.exports = ServiceHandler;