service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerSvc

type HandlerSvc struct {
	// contains filtered or unexported fields
}

func (HandlerSvc) GetDepositList

func (h HandlerSvc) GetDepositList(params *models.QueryDTParams) (*models.DepositTokensResponse, error)

func (HandlerSvc) GetDepositTokensList

func (h HandlerSvc) GetDepositTokensList(params *models.QueryDTParams) (*models.DepositTokensResponse, error)

func (HandlerSvc) QueryDTListParams

func (h HandlerSvc) QueryDTListParams(page string, pageSize string, order string) (*models.QueryDTParams, error)

type Service

type Service interface {
	GetDepositTokensList(*models.QueryDTParams) (*models.DepositTokensResponse, error)

	QueryDTListParams(page string, pageSize string, order string) (*models.QueryDTParams, error)
}

func New

type Validator

type Validator struct{}

func (*Validator) ParseValidateAddress

func (v *Validator) ParseValidateAddress(addr string) (common.Address, error)

func (*Validator) ValidateIdOrIndex

func (v *Validator) ValidateIdOrIndex(idOrIndex uint64) error

func (*Validator) ValidateOrder

func (v *Validator) ValidateOrder(order string) string

func (*Validator) ValidatePage

func (v *Validator) ValidatePage(page int) int

func (*Validator) ValidatePageSize

func (v *Validator) ValidatePageSize(pageSize int) int

Jump to

Keyboard shortcuts

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