tkUseCase

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrActivityRecordNotFound string = "ActivityRecordNotFound"
)

Variables

View Source
var ActivityRecordsDefaultPagination = tkDto.Pagination{
	PageNumber:   0,
	ItemsPerPage: 10,
}

Functions

func CreateActivityRecord

func CreateActivityRecord(
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	createDto tkDto.CreateActivityRecord,
)

CreateActivityRecord persists an activity record as a non-blocking side effect. Errors are logged but not returned to avoid failing the caller's primary operation.

func DeleteActivityRecord

func DeleteActivityRecord(
	activityRecordCmdRepo tkRepository.ActivityRecordCmdRepo,
	deleteDto tkDto.DeleteActivityRecord,
) error

func ReadActivityRecords

func ReadActivityRecords(
	activityRecordQueryRepo tkRepository.ActivityRecordQueryRepo,
	requestDto tkDto.ReadActivityRecordsRequest,
) (responseDto tkDto.ReadActivityRecordsResponse, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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