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
Click to show internal directories.
Click to hide internal directories.