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 e458d10 commit 0af8551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/source/system/authority.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (i *initAuthority) InitializeData(ctx context.Context) (context.Context, er
entities := []sysModel.SysAuthority{
{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 0af8551

Please sign in to comment.