From 6974bfc4f7471b636af4a0d63aaedaad828687e8 Mon Sep 17 00:00:00 2001 From: zhangbei Date: Wed, 5 Aug 2020 11:44:22 +0800 Subject: [PATCH] refactor gorm table name --- internal/app/model/impl/gorm/entity/entity.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/app/model/impl/gorm/entity/entity.go b/internal/app/model/impl/gorm/entity/entity.go index 59f71173..edb1b271 100644 --- a/internal/app/model/impl/gorm/entity/entity.go +++ b/internal/app/model/impl/gorm/entity/entity.go @@ -17,11 +17,6 @@ type Model struct { DeletedAt *time.Time `gorm:"column:deleted_at;index;"` } -// TableName table name -//func (Model) TableName(name string) string { -// return fmt.Sprintf("%s%s", config.C.Gorm.TablePrefix, name) -//} - // GetDB ... func GetDB(ctx context.Context, defDB *gorm.DB) *gorm.DB { trans, ok := icontext.FromTrans(ctx)