feature: model是否使用gorm.Model

This commit is contained in:
zhang.tiancheng
2021-12-08 16:51:13 +08:00
parent 70b372293d
commit 5d1bfbad59
6 changed files with 20 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ import (
// filterModel filter.过滤 gorm.Model
func filterModel(list *[]genColumns) bool {
if config.GetDBTag() != "gorm" {
if config.GetDBTag() != "gorm" || !config.GetUserGormModel() {
return false
}

View File

@@ -11,7 +11,7 @@ import (
// filterModel filter.过滤 gorm.Model
func filterModel(list *[]genColumns) bool {
if config.GetDBTag() != "gorm" {
if config.GetDBTag() != "gorm" || !config.GetUserGormModel() {
return false
}

View File

@@ -10,7 +10,7 @@ import (
// filterModel filter.过滤 gorm.Model
func filterModel(list *[]genColumns) bool {
if config.GetDBTag() != "gorm" {
if config.GetDBTag() != "gorm" || !config.GetUserGormModel() {
return false
}