feat(ReverseEngine):初始化工程
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package imp
|
||||
|
||||
import "ReverseEngine/entity"
|
||||
|
||||
type ContentGenerate interface {
|
||||
/*
|
||||
内容制造接口
|
||||
*/
|
||||
GenerateFileContent(filePath string, fileName string, fms []entity.FieldMessage, hasTime bool, tagKey string) string
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package imp
|
||||
|
||||
import "database/sql"
|
||||
|
||||
type DbConnection interface {
|
||||
/*
|
||||
数据库连接接口
|
||||
*/
|
||||
CreateDbConnection(dbPath string, maxIdleConns int, connMaxLifeTime int) *sql.DB
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package imp
|
||||
|
||||
import "database/sql"
|
||||
|
||||
type ReverseCheck interface {
|
||||
/*
|
||||
关于文件和文件夹的一致校验接口
|
||||
dirPath 文件夹路径
|
||||
tableName 数据库表名
|
||||
cover 是否覆盖已有文件
|
||||
*/
|
||||
CheckFileDir(dirPath string, tableName string, cover bool) bool
|
||||
|
||||
/*
|
||||
校验数据库表是否存在
|
||||
*/
|
||||
CheckTableExist(dbName string, tableName string, db *sql.DB) bool
|
||||
}
|
||||
Reference in New Issue
Block a user