tkDto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PaginationSingleItem  = Pagination{PageNumber: 0, ItemsPerPage: 1}
	PaginationUnpaginated = Pagination{PageNumber: 0, ItemsPerPage: 1000}
)

Functions

This section is empty.

Types

type CreateActivityRecord added in v0.1.2

type CreateActivityRecord struct {
	RecordLevel       tkValueObject.ActivityRecordLevel        `json:"recordLevel"`
	RecordCode        tkValueObject.ActivityRecordCode         `json:"recordCode"`
	AffectedResources []tkValueObject.SystemResourceIdentifier `json:"affectedResources"`
	RecordDetails     any                                      `json:"recordDetails"`
	OperatorSri       *tkValueObject.SystemResourceIdentifier  `json:"operatorSri"`
	OperatorIpAddress *tkValueObject.IpAddress                 `json:"operatorIpAddress"`
}

type DeleteActivityRecord added in v0.1.2

type DeleteActivityRecord struct {
	RecordId          *tkValueObject.ActivityRecordId          `json:"recordId"`
	RecordLevel       *tkValueObject.ActivityRecordLevel       `json:"recordLevel"`
	RecordCode        *tkValueObject.ActivityRecordCode        `json:"recordCode"`
	AffectedResources []tkValueObject.SystemResourceIdentifier `json:"affectedResources"`
	OperatorSri       *tkValueObject.SystemResourceIdentifier  `json:"operatorSri"`
	OperatorIpAddress *tkValueObject.IpAddress                 `json:"operatorIpAddress"`
	CreatedBeforeAt   *tkValueObject.UnixTime                  `json:"createdBeforeAt"`
	CreatedAfterAt    *tkValueObject.UnixTime                  `json:"createdAfterAt"`
}

func NewDeleteActivityRecord added in v0.1.2

func NewDeleteActivityRecord(
	recordId *tkValueObject.ActivityRecordId,
	recordLevel *tkValueObject.ActivityRecordLevel,
	recordCode *tkValueObject.ActivityRecordCode,
	affectedResources []tkValueObject.SystemResourceIdentifier,
	operatorSri *tkValueObject.SystemResourceIdentifier,
	operatorIpAddress *tkValueObject.IpAddress,
	createdBeforeAt, createdAfterAt *tkValueObject.UnixTime,
) DeleteActivityRecord

type Pagination

type Pagination struct {
	PageNumber    uint32                                 `json:"pageNumber"`
	ItemsPerPage  uint16                                 `json:"itemsPerPage"`
	SortBy        *tkValueObject.PaginationSortBy        `json:"sortBy"`
	SortDirection *tkValueObject.PaginationSortDirection `json:"sortDirection"`
	LastSeenId    *tkValueObject.PaginationLastSeenId    `json:"lastSeenId"`
	PagesTotal    *uint32                                `json:"pagesTotal"`
	ItemsTotal    *uint64                                `json:"itemsTotal"`
}

type ReadActivityRecordsRequest added in v0.1.2

type ReadActivityRecordsRequest struct {
	Pagination        Pagination                               `json:"pagination"`
	RecordId          *tkValueObject.ActivityRecordId          `json:"recordId"`
	RecordLevel       *tkValueObject.ActivityRecordLevel       `json:"recordLevel"`
	RecordCode        *tkValueObject.ActivityRecordCode        `json:"recordCode"`
	AffectedResources []tkValueObject.SystemResourceIdentifier `json:"affectedResources"`
	OperatorSri       *tkValueObject.SystemResourceIdentifier  `json:"operatorSri"`
	OperatorIpAddress *tkValueObject.IpAddress                 `json:"operatorIpAddress"`
	CreatedBeforeAt   *tkValueObject.UnixTime                  `json:"createdBeforeAt"`
	CreatedAfterAt    *tkValueObject.UnixTime                  `json:"createdAfterAt"`
}

type ReadActivityRecordsResponse added in v0.1.2

type ReadActivityRecordsResponse struct {
	Pagination      Pagination                `json:"pagination"`
	ActivityRecords []tkEntity.ActivityRecord `json:"activityRecords"`
}

Jump to

Keyboard shortcuts

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