Documentation ¶
Index ¶
- Variables
- func CheckNameColumn(columnName string) bool
- func CheckSexColumn(columnName string) bool
- func CheckStatusColumn(columnName string) bool
- func CheckTypeColumn(columnName string) bool
- func ConvertClassName(tableName string) string
- func GetBusinessName(tableName string) string
- func GetColumnLength(columnType string) int
- func GetDbType(columnType string) string
- func IsBaseEntity(value string) bool
- func IsExistInArray(value string, array []string) bool
- func IsNotEdit(value string) bool
- func IsNotList(value string) bool
- func IsNotQuery(value string) bool
- func IsNumberObject(value string) bool
- func IsStringObject(value string) bool
- func IsTimeObject(value string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ColumnNameBaseEntity = []string{"create_by", "create_time", "del_flag", "update_by", "update_time"}
ColumnNameBaseEntity 在BaseEntity字段
View Source
var ColumnNameNotEdit = []string{"id", "create_by", "create_time", "del_flag", "update_by", "update_time"}
ColumnNameNotEdit 页面不需要编辑字段
View Source
var ColumnNameNotList = []string{"id", "create_by", "create_time", "del_flag", "update_by", "update_time"}
ColumnNameNotList 页面不需要显示的列表字段
View Source
var ColumnNameNotQuery = []string{"id", "create_by", "create_time", "del_flag", "update_by", "update_time", "remark"}
ColumnNameNotQuery 页面不需要查询字段
View Source
var ColumnTypeNumber = []string{"tinyint", "smallint", "mediumint", "int", "number", "integer", "bigint", "float", "float", "double", "decimal"}
ColumnTypeNumber 数据库数字类型
View Source
var ColumnTypeStr = []string{"char", "varchar", "narchar", "varchar2", "tinytext", "text", "mediumtext", "longtext"}
ColumnTypeStr 数据库字符串类型
View Source
var ColumnTypeTime = []string{"datetime", "time", "date", "timestamp"}
ColumnTypeTime 数据库时间类型
Functions ¶
func CheckStatusColumn ¶
CheckStatusColumn 检查字段名后6位是否是status
func ConvertClassName ¶
func GetBusinessName ¶
func IsExistInArray ¶
IsExistInArray 判断string 是否存在在数组中
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.