pagemodel

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stru2Filter

func Stru2Filter(datas []schema.Tabler, filterFields string) []any

Types

type IchubResult

type IchubResult[T any] struct {
	Data  T   `json:"data"`
	Total int `json:"total"`
	*basedto.IchubResult
}

func DefaultIchubResult

func DefaultIchubResult[T any]() *IchubResult[T]

func FromResult

func FromResult[T baseiface.IpoolObj](result *basedto.IchubResult) *IchubResult[T]

func NewIchubResult

func NewIchubResult[T any]() *IchubResult[T]

func (*IchubResult[T]) From

func (self *IchubResult[T]) From(result *basedto.IchubResult) *IchubResult[T]

func (*IchubResult[T]) NewOfPtrType

func (self *IchubResult[T]) NewOfPtrType() T

func (*IchubResult[T]) ValueOfPageResult

func (self *IchubResult[T]) ValueOfPageResult(result *page.PageResult) *IchubResult[T]

type PageRequest

type PageRequest[T any] struct {
	*page.PageRequest
	Data T `json:"data"`
}

func Default

func Default[T any]() *PageRequest[T]

func NewPageRequest

func NewPageRequest[T any]() *PageRequest[T]

type PageResult

type PageResult[T any] struct {
	baseconfig.IchubClientDto
	*page.PageResult
	Data []T `json:"data"`
}

func DefaultResult

func DefaultResult[T any]() *PageResult[T]

func From

func From[T schema.Tabler](result *page.PageResult) *PageResult[T]

func FromPageEsResult

func FromPageEsResult[T baseiface.IpoolObj](result *pagees.PageEsResult) *PageResult[T]

func FromPageResult

func FromPageResult[T baseiface.IpoolObj](result *page.PageResult) *PageResult[T]

func NewPageResult

func NewPageResult[T any]() *PageResult[T]

func (*PageResult[T]) ExistData

func (self *PageResult[T]) ExistData() bool

func (*PageResult[T]) ExistRecord

func (self *PageResult[T]) ExistRecord() bool

func (*PageResult[T]) FromPageResult

func (self *PageResult[T]) FromPageResult(result *page.PageResult) *PageResult[T]

func (*PageResult[T]) Result2One

func (self *PageResult[T]) Result2One() T

func (*PageResult[T]) Result2Stru

func (self *PageResult[T]) Result2Stru(out any) error

func (*PageResult[T]) Stru2Filter

func (self *PageResult[T]) Stru2Filter(datas []schema.Tabler, filterFields string) []any

func (*PageResult[T]) ValueOf

func (self *PageResult[T]) ValueOf(result *pagees.PageEsResult) *PageResult[T]

func (*PageResult[T]) ValueOfPageResult

func (self *PageResult[T]) ValueOfPageResult(result *page.PageResult) *PageResult[T]

Jump to

Keyboard shortcuts

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