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

This commit is contained in:
zhangwenjian
2021-06-18 21:34:57 +08:00
parent 5e7d2614b3
commit 25472887c9
32 changed files with 1 additions and 1931 deletions
@@ -1,13 +0,0 @@
package 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:名称"`
ControlBy
ModelTime
}
func (SysAreaData) TableName() string {
return "sys_area_data"
}
@@ -1,16 +0,0 @@
package models
type SysCategory struct {
Model
Name string `json:"name" gorm:"type:varchar(255);comment:名称"` //
Img string `json:"img" gorm:"type:varchar(255);comment:图标"` //
Sort int `json:"sort" gorm:"type:int(4);comment:排序"` //
Status int `json:"status" gorm:"type:int(1);comment:状态"` //
Remark string `json:"remark" gorm:"type:varchar(255);comment:备注"` //
ControlBy
ModelTime
}
func (SysCategory) TableName() string {
return "sys_category"
}
@@ -1,18 +0,0 @@
package models
type SysContent struct {
Model
CateId int `json:"cateId" gorm:"type:int(11);comment:分类id"`
Name string `json:"name" gorm:"type:varchar(255);comment:名称"`
Status int `json:"status" gorm:"type:int(1);comment:状态"`
Img string `json:"img" gorm:"type:varchar(255);comment:图片"`
Content string `json:"content" gorm:"type:text;comment:内容"`
Remark string `json:"remark" gorm:"type:varchar(255);comment:备注"`
Sort int `json:"sort" gorm:"type:int(4);comment:排序"`
ControlBy
ModelTime
}
func (SysContent) TableName() string {
return "sys_content"
}
@@ -1,16 +0,0 @@
package models
type SysFileDir struct {
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:路径"` // 路径
Children []SysFileDir `json:"children,omitempty" gorm:"-"` // 下级信息
ControlBy
ModelTime
}
func (SysFileDir) TableName() string { /**/
return "sys_file_dir"
}
@@ -1,18 +0,0 @@
package models
type SysFileInfo struct {
Model
Type string `json:"type" gorm:"type:varchar(255);comment:类型"` //
Name string `json:"name" gorm:"type:varchar(255);comment:名称"` //
Size string `json:"size" gorm:"type:int(11);comment:大小"` //
PId int `json:"pId" gorm:"type:int(11);comment:目录"` //
Source string `json:"source" gorm:"type:varchar(255);comment:来源"` //
Url string `json:"url" gorm:"type:varchar(255);comment:地址"` //
FullUrl string `json:"fullUrl" gorm:"type:varchar(255);comment:全地址"` //
ControlBy
ModelTime
}
func (SysFileInfo) TableName() string {
return "sys_file_info"
}
@@ -32,13 +32,8 @@ func _1599190683659Tables(db *gorm.DB, version string) error {
new(models.SysPost),
new(models.DictData),
new(models.DictType),
new(models.SysAreaData),
new(models.SysJob),
new(models.SysConfig),
new(models.SysFileDir),
new(models.SysFileInfo),
new(models.SysCategory),
new(models.SysContent),
new(models.SysApi),
)
if err != nil {