mengstack-api/internal/modules/auth/domain/repository.go
MengStack Dev fbf9af32f0 Initial commit: MengStack Go API framework
Clean public release with:
- Go/Gin/PostgreSQL/Redis architecture
- Multi-tenant support
- JWT authentication
- Docker Compose deployment
- Environment-based configuration
2026-10-03 00:14:40 +08:00

12 lines
400 B
Go

package domain
import "context"
type UserRepository interface {
Create(ctx context.Context, user *User) error
FindByID(ctx context.Context, tenantID string, id uint) (*User, error)
FindByEmail(ctx context.Context, tenantID string, email string) (*User, error)
FindByUsername(ctx context.Context, tenantID string, username string) (*User, error)
Update(ctx context.Context, user *User) error
}