This commit is contained in:
@@ -152,7 +152,7 @@ func TestPermissionStore_GetAll_AvailableForRoleType(t *testing.T) {
|
||||
|
||||
t.Run("GetAll按平台角色类型过滤", func(t *testing.T) {
|
||||
roleType := 1
|
||||
perms, err := store.GetAll(ctx, &roleType)
|
||||
perms, err := store.GetAll(ctx, &roleType, nil)
|
||||
require.NoError(t, err)
|
||||
|
||||
var codes []string
|
||||
@@ -165,7 +165,7 @@ func TestPermissionStore_GetAll_AvailableForRoleType(t *testing.T) {
|
||||
|
||||
t.Run("GetAll按客户角色类型过滤", func(t *testing.T) {
|
||||
roleType := 2
|
||||
perms, err := store.GetAll(ctx, &roleType)
|
||||
perms, err := store.GetAll(ctx, &roleType, nil)
|
||||
require.NoError(t, err)
|
||||
|
||||
var codes []string
|
||||
@@ -177,7 +177,7 @@ func TestPermissionStore_GetAll_AvailableForRoleType(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("GetAll不过滤时返回所有", func(t *testing.T) {
|
||||
perms, err := store.GetAll(ctx, nil)
|
||||
perms, err := store.GetAll(ctx, nil, nil)
|
||||
require.NoError(t, err)
|
||||
|
||||
var codes []string
|
||||
|
||||
Reference in New Issue
Block a user