refactor🎨:移除内容管理、行政区管理和资源管理

This commit is contained in:
zhangwenjian committed 2021-06-18 21:34:57 +08:00
1 parent 5e7d2614b3
commit 25472887c9
32 files changed
+1 -1931

No files matched your search

-27
View File
@@ -1,27 +0,0 @@
package models
import (
"go-admin/common/models"
)
type SysAreaData struct {
Id int `json:"id" gorm:"primaryKey;comment:主键编码"`
PId int `json:"pId" gorm:"size:11;comment:上级编码"`
Name string `json:"name" gorm:"size:128;comment:名称"`
Children []SysAreaData `json:"children,omitempty" gorm:"-"`
models.ControlBy
models.ModelTime
}
func (SysAreaData) TableName() string {
return "sys_china_area_data"
}
func (e *SysAreaData) Generate() models.ActiveRecord {
o := *e
return &o
}
func (e *SysAreaData) GetId() interface{} {
return e.Id
}
-40
View File
@@ -1,40 +0,0 @@
package models
import (
"go-admin/common/models"
)
type SysFileDir struct {
models.Model
Label string `json:"label" gorm:"type:varchar(255);comment:目录名称"` // 目录名称
PId int `json:"p_id" gorm:"type:int(11);comment:上级目录"` // 上级目录
Sort string `json:"sort" gorm:"type:bigint(20);comment:排序"` // 排序
Path string `json:"path" gorm:"type:varchar(255);comment:路径"` // 路径
Children []SysFileDir `json:"children,omitempty" gorm:"-"` // 下级信息
models.ControlBy
models.ModelTime
}
//type SysFileDirL struct {
// 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
// models.ModelTime
// Children []SysFileDirL `json:"children,omitempty" gorm:"-"` // 下级信息
//}
func (SysFileDir) TableName() string { /**/
return "sys_file_dir"
}
func (e *SysFileDir) Generate() models.ActiveRecord {
o := *e
return &o
}
func (e *SysFileDir) GetId() interface{} {
return e.Id
}
-31
View File
@@ -1,31 +0,0 @@
package models
import (
"go-admin/common/models"
)
type SysFileInfo struct {
models.Model
Type string `json:"type" gorm:"size:255;comment:类型"` //
Name string `json:"name" gorm:"size:255;comment:名称"` //
Size string `json:"size" gorm:"size:11;comment:大小"` //
PId int `json:"p_id" gorm:"size:11;comment:目录"` //
Source string `json:"source" gorm:"size:255;comment:来源"` //
Url string `json:"url" gorm:"size:255;comment:地址"` //
FullUrl string `json:"full_url" gorm:"size:255;comment:全地址"` //
models.ControlBy
models.ModelTime
}
func (SysFileInfo) TableName() string {
return "sys_file_info"
}
func (e *SysFileInfo) Generate() models.ActiveRecord {
o := *e
return &o
}
func (e *SysFileInfo) GetId() interface{} {
return e.Id
}