userservicemapper

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserBaseResponseMapper

type UserBaseResponseMapper interface {
	// Converts a single user record into a UserResponse.
	ToUserResponse(user *record.UserRecord) *response.UserResponse
}

UserBaseResponseMapper provides methods to map UserRecord domain models to UserResponse API-compatible response types.

type UserCommandResponseMapper

type UserCommandResponseMapper interface {
	UserBaseResponseMapper

	// Converts a soft-deleted user record into a UserResponseDeleteAt.
	ToUserResponseDeleteAt(user *record.UserRecord) *response.UserResponseDeleteAt
}

UserCommandResponseMapper provides methods to map UserRecord domain models to UserResponse API-compatible response types.

func NewUserCommandResponseMapper

func NewUserCommandResponseMapper() UserCommandResponseMapper

type UserQueryResponseMapper

type UserQueryResponseMapper interface {
	UserBaseResponseMapper

	// Converts a list of user records into a list of UserResponse.
	ToUsersResponse(users []*record.UserRecord) []*response.UserResponse

	// Converts a list of soft-deleted user records into a list of UserResponseDeleteAt.
	ToUsersResponseDeleteAt(users []*record.UserRecord) []*response.UserResponseDeleteAt
}

UserQueryResponseMapper provides methods to map UserRecord domain models to UserResponse API-compatible response types.

func NewUserQueryResponseMapper

func NewUserQueryResponseMapper() UserQueryResponseMapper

NewUserQueryResponseMapper creates a new instance of userQueryResponseMapper, which implements the UserQueryResponseMapper interface. This mapper is responsible for mapping UserRecord domain models to UserResponse and UserResponseDeleteAt API-compatible formats.

type UserResponseMapper added in v1.0.13

type UserResponseMapper interface {
	QueryMapper() UserQueryResponseMapper
	CommandMapper() UserCommandResponseMapper
}

func NewUserResponseMapper

func NewUserResponseMapper() UserResponseMapper

Jump to

Keyboard shortcuts

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