storecmn

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound                    = errors.New("not found")
	ErrEmptyHash                   = errors.New("empty hash")
	ErrEmptyID                     = errors.New("empty id")
	ErrEmptyBlockHeight            = errors.New("empty block height")
	ErrEmptyAddress                = errors.New("empty address")
	ErrEmptyCreatedAt              = errors.New("empty created_at")
	ErrEmptyTransactionHash        = errors.New("empty transaction hash")
	ErrEmptyTransactionBlockNumber = errors.New("empty transaction block number")
	ErrEmptyFromAddress            = errors.New("empty from address")
	ErrEmptyToAddress              = errors.New("empty to address")
	ErrEmptyContractAddress        = errors.New("empty contract address")
	ErrEmptyStatus                 = errors.New("empty status")
	ErrEmptyOTP                    = errors.New("empty otp")
	ErrAlreadyExists               = errors.New("already exists")
)

Functions

This section is empty.

Types

type CommonFindParams

type CommonFindParams struct {
	IsAscOrdering bool   `json:"is_asc_ordering"`
	OrderBy       string `json:"order_by"`
	PageParams
}

func NewCommonFindParams

func NewCommonFindParams() *CommonFindParams

func (*CommonFindParams) SetIsAscOrdering

func (s *CommonFindParams) SetIsAscOrdering(v bool) *CommonFindParams

func (*CommonFindParams) SetOrderBy

func (s *CommonFindParams) SetOrderBy(v string) *CommonFindParams

func (*CommonFindParams) SetPage

func (s *CommonFindParams) SetPage(v *uint64) *CommonFindParams

func (*CommonFindParams) SetPageSize

func (s *CommonFindParams) SetPageSize(v *uint64) *CommonFindParams

type FindResponse

type FindResponse[T any] struct {
	Items []T `json:"items"`
}

type FindResponseWithPagingFlag

type FindResponseWithPagingFlag[T any] struct {
	Items            []T  `json:"items"`
	IsNextPageExists bool `json:"is_next_page_exists"`
}

type PageParams

type PageParams struct {
	Page     *uint64
	PageSize *uint64
}

Jump to

Keyboard shortcuts

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