feat: 完善平台总后台模块
This commit is contained in:
@@ -6,6 +6,9 @@ import "gorm.io/gorm"
|
||||
// New 在同一事务中初始化平台基础数据。
|
||||
func New(database *gorm.DB) error {
|
||||
return database.Transaction(func(tx *gorm.DB) error {
|
||||
if err := InitPlatformAccess(tx); err != nil {
|
||||
return err
|
||||
}
|
||||
return InitPlatformRoot(tx)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user