userrolerecord

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 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 UserRoleRecordMapping

type UserRoleRecordMapping interface {
	// ToUserRoleRecord maps a UserRole database row to a UserRoleRecord domain model.
	//
	// Parameters:
	//   - user: A pointer to a UserRole representing the database row.
	//
	// Returns:
	//   - A pointer to a UserRoleRecord containing the mapped data, including
	//     UserRoleID, UserID, RoleID, CreatedAt, and UpdatedAt.
	ToUserRoleRecord(userRole *db.UserRole) *record.UserRoleRecord
}

UserRoleRecordMapping defines a mapping function from a UserRole database row to a UserRoleRecord domain model.

func NewUserRoleRecordMapper

func NewUserRoleRecordMapper() UserRoleRecordMapping

NewUserRoleRecordMapper creates a new UserRoleRecordMapper instance.

Jump to

Keyboard shortcuts

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