Skip to content

Commit

Permalink
Merge pull request #126 from suyuan32/dev
Browse files Browse the repository at this point in the history
fix: wrong variable name in i18n
  • Loading branch information
suyuan32 authored Jun 5, 2023
2 parents 901a41d + ed7d01a commit 07e26eb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/internal/i18n/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"createProvider": "Create a provider information",
"updateProvider": "Update the provider information",
"deleteProvider": "Delete provider information",
"geProviderList": "Get provider list",
"getProviderList": "Get provider list",
"oauthLogin": "Third-party log in",
"createToken": "Create a token",
"updateToken": "Update the token",
Expand Down
2 changes: 1 addition & 1 deletion api/internal/i18n/locale/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"createProvider": "创建登录提供商",
"updateProvider": "更新登录提供商",
"deleteProvider": "删除登录提供商",
"geProviderList": "获取提供商列表",
"getProviderList": "获取提供商列表",
"oauthLogin": "第三方登录",
"createToken": "创建Token",
"updateToken": "更新Token",
Expand Down
2 changes: 1 addition & 1 deletion rpc/internal/logic/base/init_database_api_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func (l *InitDatabaseLogic) insertApiData() error {

apis = append(apis, l.svcCtx.DB.API.Create().
SetPath("/oauth_provider/list").
SetDescription("apiDesc.geProviderList").
SetDescription("apiDesc.getProviderList").
SetAPIGroup("oauth").
SetMethod("POST"),
)
Expand Down
3 changes: 2 additions & 1 deletion rpc/internal/logic/base/init_database_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"entgo.io/ent/dialect/sql/schema"
"github.com/suyuan32/simple-admin-common/enum/common"
"github.com/suyuan32/simple-admin-common/msg/logmsg"
"github.com/suyuan32/simple-admin-common/utils/encrypt"
"github.com/zeromicro/go-zero/core/errorx"
Expand Down Expand Up @@ -314,7 +315,7 @@ func (l *InitDatabaseLogic) insertDepartmentData() error {
SetPhone("18888888888").
SetRemark("Super Administrator").
SetSort(1).
SetParentID(0),
SetParentID(common.DefaultParentId),
)

err := l.svcCtx.DB.Department.CreateBulk(departments...).Exec(l.ctx)
Expand Down

0 comments on commit 07e26eb

Please sign in to comment.