feat✨ oss 文件上传

This commit is contained in:
zhangwenjian committed 2020-11-12 20:18:53 +08:00
1 parent 2399824d35
commit 52be3f6153
25 files changed
+1411 -175

No files matched your search

@@ -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 {