1.7.0 • Published 1 year ago

fsp-uni-utility v1.7.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

sxz-uni-utility-npm

对快捷访问各个基础 api 的封装,仅供后端应用开发时调用。

conf 参数结构

module.exports = {
    appInfo: {
        dev: {
            id: "",
            name: "",
            code: "",
            serviceId: ""
        },
        lodep: {
            id: "",
            name: "",
            code: "",
            serviceId: ""
        },
        test: {
            id: "",
            name: "",
            code: "",
            serviceId: ""
        },
        prod: {
            id: "",
            name: "",
            code: "",
            serviceId: ""
        },
    },
    dbs: {
        mdm: {
            dev: {
                client: "mysql2",
                connection: {
                    host: "localhost",
                    port: 3306,
                    user: "root",
                    password: "",
                    database: "mdm_dev"
                }    
            },
            lodep: {
                client: "mysql2",
                connection: {
                    host: "localhost",
                    port: 3306,
                    user: "root",
                    password: "",
                    database: "mdm"
                }    
            },
            test: {
                client: "mysql2",
                connection: {
                    host: "192.168.0.100",
                    port: 3306,
                    user: "root",
                    password: "",
                    database: "mdm_test"
                }    
            },
            prod: {
                client: "mysql2",
                connection: {
                    host: "192.168.0.100",
                    port: 3306,
                    user: "root",
                    password: "",
                    database: "mdm"
                }    
            }
        }
    },
    urlBases: {
        authorizer: {
            dev: 'http://localhost:8811/',
            lodep: 'http://localhost:8811/',
            test: 'https://apptest.xxx.com/api/authorizer/',
            prod: 'https://app.xxx.com/api/authorizer/'
        }
    },
    logger: {
        debug: false,
        remoteDbServer: {
            dev: 'http://admin:xxx@localhost:5984/sxz_sys_logs_dev',
            lodep: 'http://admin:xxx@localhost:5984/sxz_sys_logs',
            test: 'http://admin:xxx@192.168.0.10:5984/sxz_sys_logs_test',
            prod: 'http://admin:xxx@192.168.0.10:5984/sxz_sys_logs'
        },
        timeTagMode: "",
        keepLastN: 3
    }
}
1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago