user

package
v1.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Create(ctx context.Context, user *User) error
	GetByID(ctx context.Context, id string) (*User, error)
	GetByEmail(ctx context.Context, email string) (*User, error)
}

type User

type User struct {
	ID    string `json:"id"`
	Email string `json:"email"`
	types.BaseModel
}

func FromEnt

func FromEnt(e *ent.User) *User

FromEnt converts an ent User to a domain User

func FromEntList

func FromEntList(users []*ent.User) []*User

FromEntList converts a list of ent Users to domain Users

func NewUser

func NewUser(email, tenantID string) *User

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL