guard/internal/domain/repository/token.go

13 lines
289 B
Go
Raw Normal View History

2024-08-06 05:59:24 +00:00
package repository
import (
"ark-permission/internal/entity"
"context"
)
type TokenRepository interface {
Create(ctx context.Context, token entity.Token) error
2024-08-08 03:02:13 +00:00
GetByAccess(ctx context.Context, id string) (entity.Token, error)
Delete(ctx context.Context, token entity.Token) error
2024-08-06 05:59:24 +00:00
}