Merge pull request #179 from redbirdztc/feature-use-gorm-model-or-not

feature: model是否使用gorm.Model
This commit is contained in:
xxj
2021-12-08 19:05:42 +08:00
committed by GitHub
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
}