mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-10-13 12:49:26 +00:00
I18n dev 275 (#1892)
* feat: 适配I18N --------- Co-authored-by: pixelmaxQM <flipped_aurora@163.com>
This commit is contained in:
@@ -2,6 +2,7 @@ package system
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
||||
sysModel "github.com/flipped-aurora/gin-vue-admin/server/model/system"
|
||||
"github.com/flipped-aurora/gin-vue-admin/server/service/system"
|
||||
"github.com/pkg/errors"
|
||||
@@ -58,7 +59,7 @@ func (i *initApiIgnore) InitializeData(ctx context.Context) (context.Context, er
|
||||
{Method: "GET", Path: "/info/getInfoPublic"},
|
||||
}
|
||||
if err := db.Create(&entities).Error; err != nil {
|
||||
return ctx, errors.Wrap(err, sysModel.SysIgnoreApi{}.TableName()+"表数据初始化失败!")
|
||||
return ctx, errors.Wrap(err, sysModel.SysIgnoreApi{}.TableName()+global.Translate("system.api.desc.tableDataInitFail"))
|
||||
}
|
||||
next := context.WithValue(ctx, i.InitializerName(), entities)
|
||||
return next, nil
|
||||
|
||||
Reference in New Issue
Block a user