first commit

This commit is contained in:
Sas Andy
2024-09-20 16:41:59 +07:00
commit 6467a966c1
19 changed files with 1897 additions and 0 deletions

19
source/config/config.ts Normal file
View File

@@ -0,0 +1,19 @@
import { readFileSync } from "fs";
interface IConfig {
base_url: string;
schedule: string[];
delay: number;
row_per_batch: number;
}
const j_config = JSON.parse(
readFileSync("./config-accounting.json").toString()
);
const config: IConfig = {
base_url: j_config["base_url"],
schedule: j_config["schedule"],
delay: j_config["delay"],
row_per_batch: j_config["row_per_batch"],
};
export default config;