框架优化

This commit is contained in:
hoteas
2022-03-13 17:02:19 +08:00
parent e426c285b0
commit cb0bcdb2d1
8 changed files with 96 additions and 66 deletions
+16 -7
View File
@@ -11,18 +11,27 @@
"timeout": 7200
}
},
"codeConfig": {
"admin": {
"codeConfig": [
{
"config": "config/admin.json",
"mode": 0,
"name": "",
"rule": "config/adminRule.json",
"table": "admin"
},
{
"config": "config/app.json",
"name": "admin",
"rule": "config/rule.json"
"mode": 0,
"name": "app",
"rule": "config/appRule.json",
"table": "admin"
}
},
"crossDomain": "auto",
],
"crossDomain": "",
"db": {
"mysql": {
"host": "192.168.6.253",
"name": "iedc_dev",
"name": "rfcb",
"password": "dasda8454456",
"port": "3306",
"prefix": "",
+6 -6
View File
@@ -20,16 +20,16 @@
},
"注释": "可配置memorydbredis,默认启用memory,默认优先级为memory\u003eredis\u003edb,memory与数据库缓存设置项一致,缓存数据填充会自动反方向反哺,加入memory缓存过期将自动从redis更新,但memory永远不会更新redis,如果是集群建议不要开启memory,配置即启用"
},
"codeConfig": {
"admin": {
"codeConfig": [
"注释:配置即启用,非必须,默认无",
{
"config": "默认config/app.json,必须,接口描述配置文件",
"mode": "默认0,非必须,0为内嵌代码模式,1为生成代码模式",
"name": "默认无,非必须,有则生成代码到此目录,无则采用缺省模式使用表名,如设置为:admin,将在admin目录生成包名为admin的代码",
"rule": "默认config/rule.json,非必须,有则按改规则生成接口,无则按系统内嵌方式生成",
"注释": "默认admin必须,有则根据数据库内当前表名做为用户生成数据"
},
"注释": "配置即启用,非必须,默认无"
},
"table": "默认admin,必须,根据数据库内当前表名做为用户生成数据"
}
],
"crossDomain": "默认空 非必须,空字符串为不开启,如果需要跨域设置,auto为智能开启所有网站允许跨域,http://www.baidu.com为指定域允许跨域",
"db": {
"mysql": {