refactor: introduce internal/domain/ layer, rename model.go → entity.go
Move all business-logic packages from internal/ root into internal/domain/: auth, cuisine, diary, dish, home, ingredient, language, menu, product, recipe, recognition, recommendation, savedrecipe, tag, units, user Rename model.go → entity.go in packages that hold domain entities: diary, dish, home, ingredient, menu, product, recipe, savedrecipe, user Update all import paths accordingly (adapters, infra/server, cmd/server, tests). No logic changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
11
backend/internal/domain/auth/mocks/token_verifier.go
Normal file
11
backend/internal/domain/auth/mocks/token_verifier.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package mocks
|
||||
|
||||
import "context"
|
||||
|
||||
type MockTokenVerifier struct {
|
||||
VerifyTokenFn func(ctx context.Context, idToken string) (uid, email, name, avatarURL string, err error)
|
||||
}
|
||||
|
||||
func (m *MockTokenVerifier) VerifyToken(ctx context.Context, idToken string) (uid, email, name, avatarURL string, err error) {
|
||||
return m.VerifyTokenFn(ctx, idToken)
|
||||
}
|
||||
Reference in New Issue
Block a user