Documentation
¶
Overview ¶
Package user manages user accounts and profile data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles user HTTP requests.
func NewHandler ¶
NewHandler creates a new user handler.
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository provides data access for the user domain.
func NewRepository ¶
func NewRepository(db *sqlx.DB) *Repository
NewRepository creates a new user repository.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides user business logic.
type UserResponse ¶
type UserResponse struct {
ID string `json:"id"`
Email string `json:"email"`
IsAdmin bool `json:"is_admin"`
AccountStatus core.AccountStatus `json:"account_status"`
TrialStartedAt *time.Time `json:"trial_started_at,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
func ToUserResponse ¶
func ToUserResponse(u *User) UserResponse
Click to show internal directories.
Click to hide internal directories.