Clean public release with: - Go/Gin/PostgreSQL/Redis architecture - Multi-tenant support - JWT authentication - Docker Compose deployment - Environment-based configuration
12 lines
400 B
Go
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
|
|
}
|