package repository import ( "backend/pkg/permission/domain/entity" "context" ) // TokenRepository 令牌倉庫介面 type TokenRepository interface { Create(ctx context.Context, token *entity.Token) error GetByAccessToken(ctx context.Context, accessToken string) (*entity.Token, error) GetByRefreshToken(ctx context.Context, refreshToken string) (*entity.Token, error) Update(ctx context.Context, token *entity.Token) error Delete(ctx context.Context, id string) error DeleteByUserID(ctx context.Context, uid string) error }