You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
package model
|
|
|
|
import "errors"
|
|
|
|
// 初始版本自动化代码工具
|
|
type AutoCodeStruct struct {
|
|
StructName string `json:"structName"`
|
|
TableName string `json:"tableName"`
|
|
PackageName string `json:"packageName"`
|
|
Abbreviation string `json:"abbreviation"`
|
|
Description string `json:"description"`
|
|
AutoCreateApiToSql bool `json:"autoCreateApiToSql"`
|
|
AutoMoveFile bool `json:"autoMoveFile"`
|
|
Fields []Field `json:"fields"`
|
|
}
|
|
|
|
type Field struct {
|
|
FieldName string `json:"fieldName"`
|
|
FieldDesc string `json:"fieldDesc"`
|
|
FieldType string `json:"fieldType"`
|
|
FieldJson string `json:"fieldJson"`
|
|
DataType string `json:"dataType"`
|
|
DataTypeLong string `json:"dataTypeLong"`
|
|
Comment string `json:"comment"`
|
|
ColumnName string `json:"columnName"`
|
|
FieldSearchType string `json:"fieldSearchType"`
|
|
DictType string `json:"dictType"`
|
|
}
|
|
|
|
var AutoMoveErr error = errors.New("创建代码成功并移动文件成功")
|