Skip to content

Commit

Permalink
chore(gomod): tidy go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlangzi committed Apr 23, 2024
1 parent bddb69c commit 63d4a22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions auth_perm.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"log/slog"
"time"

"github.com/yaitoo/auth"
"github.com/yaitoo/sqle"
)

Expand Down Expand Up @@ -169,7 +168,7 @@ func (a *Auth) RevokePerms(ctx context.Context, rid int, codes ...string) error
}

// GetRolePerms get role's permissions
func (a *Auth) GetRolePerms(ctx context.Context, rid int) ([]auth.Perm, error) {
func (a *Auth) GetRolePerms(ctx context.Context, rid int) ([]Perm, error) {
rows, err := a.db.QueryBuilder(ctx, a.createBuilder().
SQL(`SELECT <prefix>perm.*
FROM <prefix>role_perm
Expand Down

0 comments on commit 63d4a22

Please sign in to comment.