refactor🎨 : uint 调整为 int

This commit is contained in:
zhangwenjian committed 2020-12-21 22:04:20 +08:00
1 parent ab7c34f817
commit 46ea5f18aa
17 files changed
+125 -172

No files matched your search

+11 -13
View File
@@ -1,30 +1,28 @@
package models
import (
"gorm.io/gorm"
"go-admin/common/models"
)
type SysFileDir struct {
gorm.Model
models.ControlBy
models.Model
Label string `json:"label" gorm:"type:varchar(255);comment:目录名称"` // 目录名称
PId uint `json:"pId" gorm:"type:int(11);comment:上级目录"` // 上级目录
PId int `json:"pId" gorm:"type:int(11);comment:上级目录"` // 上级目录
Sort string `json:"sort" gorm:"type:bigint(20);comment:排序"` // 排序
Path string `json:"path" gorm:"type:varchar(255);comment:路径"` // 路径
models.ControlBy
models.ModelTime
}
type SysFileDirL struct {
gorm.Model
models.Model
Label string `json:"label" gorm:"type:varchar(255);comment:目录名称"` // 目录名称
PId int `json:"pId" gorm:"type:int(11);comment:上级目录"` // 上级目录
Sort string `json:"sort" gorm:"type:bigint(20);comment:排序"` // 排序
Path string `json:"path" gorm:"type:varchar(255);comment:路径"` // 路径
models.ControlBy
Label string `json:"label" gorm:"type:varchar(255);comment:目录名称"` // 目录名称
PId uint `json:"pId" gorm:"type:int(11);comment:上级目录"` // 上级目录
Sort string `json:"sort" gorm:"type:bigint(20);comment:排序"` // 排序
Path string `json:"path" gorm:"type:varchar(255);comment:路径"` // 路径
Children []SysFileDirL `json:"children" gorm:"-"` // 下级信息
models.ModelTime
Children []SysFileDirL `json:"children" gorm:"-"` // 下级信息
}
func (SysFileDir) TableName() string { /**/