mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2026-04-26 02:34:18 +08:00
代码生成id换uuidv7
This commit is contained in:
@@ -106,7 +106,7 @@ func (tu templateUtil) PrepareVars(table gen_model.GenTable, columns []gen_model
|
||||
for _, column := range oriSubCols {
|
||||
oriSubColNames = append(oriSubColNames, column.ColumnName)
|
||||
}
|
||||
if oriSubPriCol.ID > 0 {
|
||||
if oriSubPriCol.ID != "" {
|
||||
subPriField = oriSubPriCol.ColumnName
|
||||
subColumns = append(subColumns, oriSubPriCol)
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ func (gu genUtil) InitTable(table gen_model.GenTable) gen_model.GenTable {
|
||||
}
|
||||
|
||||
// InitColumn 初始化字段列
|
||||
func (gu genUtil) InitColumn(tableId uint, column gen_model.GenTableColumn) gen_model.GenTableColumn {
|
||||
func (gu genUtil) InitColumn(tableId string, column gen_model.GenTableColumn) gen_model.GenTableColumn {
|
||||
columnType := gu.GetDbType(column.ColumnType)
|
||||
columnLen := gu.GetColumnLength(column.ColumnType)
|
||||
col := gen_model.GenTableColumn{
|
||||
|
||||
Reference in New Issue
Block a user