Ai
1 Star 3 Fork 1

武松/fastcode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.js 2.89 KB
一键复制 编辑 原始数据 按行查看 历史
newpanjing 提交于 2018-12-12 09:28 +08:00 . Initial commit
exports.config = {
general: {
packageName: "com.zh.car",
db: {
host: "192.168.1.179",
port: 3306,
database: "zh_tourist",
username: "root",
password: "zh2018"
},
basePath: "/Users/panjing/Downloads/car-parent",
author: "panjing",
//自动创建文件夹
mkdirs: true
},
templates: [{
"template": "entity.fc",
"outSuffix": ".java",
"outPath": "/car-common/src/main/java/com/zh/car/entity",
"project": "car-common",
//覆盖文件
overwrite: true
}, {
"template": "mapper.fc",
"outSuffix": "Mapper.java",
"outPath": "/car-service/src/main/java/com/zh/car/dao",
"project": "car-service",
overwrite: true
}, {
"template": "mapper.xml.fc",
"outSuffix": "Mapper.xml",
"outPath": "/car-service/src/main/resources/mybatis/mapper",
overwrite: true
}, {
"template": "service.fc",
"outSuffix": "Service.java",
"outPath": "/car-common/src/main/java/com/zh/car/service",
"project": "car-common"
}, {
"template": "serviceImpl.fc",
"outSuffix": "ServiceImpl.java",
"outPath": "/car-service/src/main/java/com/zh/car/service/impl",
"project": "car-service"
}, {
"template": "controller.fc",
"outSuffix": "Controller.java",
"outPath": "/car-api/src/main/java/com/zh/car/api/controller",
"project": "car-api"
}
],
//数据库类型对代码类型的映射
typeMappers: {
longs: {
//包名
package: 'java.lang.Long',
//简写类型名
typeName: 'Long',
//数据库类型
types: ["SMALLINT", "MEDIUMINT", "BIGINT"]
},
strings: {
package: 'java.lang.String',
typeName: 'String',
types: ["VARCHAR", "CHAR", "TEXT", "MEDIUMTEXT"]
},
ints: {
package: 'java.lang.Integer',
typeName: "Integer",
types: ['TINYINT', "INTEGER", "INT", "BIT", "BOOLEAN"]
},
doubles: {
package: 'java.lang.Double',
typeName: 'Double',
types: ["FLOAT", "DOUBLE", "DECIMAL"]
},
dates: {
package: 'java.util.Date',
typeName: 'Date',
types: ["DATE", "TIME", "DATETIME", "TIMESTAMP", "YEAR"]
}
},
//模块
models: {
SysUser: {
table: 'sys_user',
remark: '系统用户',
url: 'sys/user'
},
// SysRole: {
// table: "sys_role",
// remark: '角色模块',
// url: 'sys/role',
// //引用其他模块的字段
// fields: [],
//
// //操作方法
// methods: {}
// }
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/tompeppa/fastcode.git
git@gitee.com:tompeppa/fastcode.git
tompeppa
fastcode
fastcode
master

搜索帮助