fsp-uni-utility
v1.7.0
Published
对快捷访问各个基础 api 的封装,仅供后端应用开发时调用。
Downloads
5
Readme
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:[email protected]:5984/sxz_sys_logs_test',
prod: 'http://admin:[email protected]:5984/sxz_sys_logs'
},
timeTagMode: "",
keepLastN: 3
}
}