feat: 代码生成
This commit is contained in:
@@ -5,6 +5,8 @@ import (
|
||||
"sundynix-go/global"
|
||||
"sundynix-go/model/system"
|
||||
|
||||
"sundynix-go/model/order"
|
||||
|
||||
"go.uber.org/zap"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
@@ -37,6 +39,12 @@ func MigrateTable() {
|
||||
system.Menu{},
|
||||
system.SysOperationRecord{},
|
||||
system.Oss{},
|
||||
|
||||
order.Order{},
|
||||
|
||||
order.Refund{},
|
||||
|
||||
order.Stock{},
|
||||
)
|
||||
if err != nil {
|
||||
global.Logger.Error("Migrate table failed,err:", zap.Error(err))
|
||||
|
||||
Reference in New Issue
Block a user