mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
feat✨ oss 文件上传
This commit is contained in:
@@ -18,12 +18,14 @@ func init() {
|
||||
func _1600089797118Migrate(db *gorm.DB, version string) error {
|
||||
return db.Transaction(func(tx *gorm.DB) error {
|
||||
f := &models.SysFileDir{
|
||||
Label: "根目录",
|
||||
PId: 0,
|
||||
Sort: 0,
|
||||
Path: "",
|
||||
CreateBy: "1",
|
||||
UpdateBy: "1",
|
||||
Label: "根目录",
|
||||
PId: 0,
|
||||
Sort: "0",
|
||||
Path: "",
|
||||
ControlBy: common.ControlBy{
|
||||
CreateBy: 1,
|
||||
UpdateBy: 1,
|
||||
},
|
||||
}
|
||||
err := tx.Create(f).Error
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user