Skip to content

Commit

Permalink
refactor gorm table name
Browse files Browse the repository at this point in the history
  • Loading branch information
zbml committed Aug 5, 2020
1 parent bb31b81 commit 6974bfc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/app/model/impl/gorm/entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6974bfc

Please sign in to comment.