Skip to content

Commit

Permalink
Merge pull request #802 from zhanluxianshen/drop-base-model
Browse files Browse the repository at this point in the history
replace basemodel by common.model
  • Loading branch information
wenjianzhang authored Aug 29, 2024
2 parents 9a8e0cd + 5dde1d2 commit bedf064
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
11 changes: 0 additions & 11 deletions app/admin/models/model.go

This file was deleted.

5 changes: 3 additions & 2 deletions app/other/models/tools/sys_columns.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package tools

import (
"go-admin/app/admin/models"
common "go-admin/common/models"

"gorm.io/gorm"
)

Expand Down Expand Up @@ -44,7 +45,7 @@ type SysColumns struct {
CreateBy int `gorm:"column:create_by;size:20;" json:"createBy"`
UpdateBy int `gorm:"column:update_By;size:20;" json:"updateBy"`

models.BaseModel
common.ModelTime
}

func (*SysColumns) TableName() string {
Expand Down
4 changes: 0 additions & 4 deletions app/other/models/tools/sys_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"strings"

"gorm.io/gorm"

"go-admin/app/admin/models"
)

type SysTables struct {
Expand Down Expand Up @@ -43,8 +41,6 @@ type SysTables struct {
DataScope string `gorm:"-" json:"dataScope"`
Params Params `gorm:"-" json:"params"`
Columns []SysColumns `gorm:"-" json:"columns"`

models.BaseModel
}

func (*SysTables) TableName() string {
Expand Down

0 comments on commit bedf064

Please sign in to comment.