Skip to content

Commit

Permalink
更改初始化角色名字
Browse files Browse the repository at this point in the history
  • Loading branch information
xue-ding-e committed Jun 23, 2024
1 parent 497d188 commit e458d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/source/system/authority.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ func (i *initAuthority) InitializeData(ctx context.Context) (context.Context, er
return ctx, system.ErrMissingDBContext
}
entities := []sysModel.SysAuthority{
{AuthorityId: 888, AuthorityName: "普通用户", ParentId: utils.Pointer[uint](0), DefaultRouter: "dashboard"},
{AuthorityId: 888, AuthorityName: "管理员", ParentId: utils.Pointer[uint](0), DefaultRouter: "dashboard"},
{AuthorityId: 9528, AuthorityName: "测试角色", ParentId: utils.Pointer[uint](0), DefaultRouter: "dashboard"},
{AuthorityId: 8881, AuthorityName: "普通用户子角色", ParentId: utils.Pointer[uint](888), DefaultRouter: "dashboard"},
{AuthorityId: 8881, AuthorityName: "管理员子角色", ParentId: utils.Pointer[uint](888), DefaultRouter: "dashboard"},
}

if err := db.Create(&entities).Error; err != nil {
Expand Down

0 comments on commit e458d10

Please sign in to comment.