pagemodel

package
v1.0.2-dev-10 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectPageResult

func InjectPageResult(s *PageResult[*basedto.BaseEntitySingle])

func LoadPageResult

func LoadPageResult() baseiface.ISingleton

Types

type IchubResult

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

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]) FailMsg

func (self *IchubResult[T]) FailMsg(msg string) *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]) String

func (self *IchubResult[T]) String() string

func (*IchubResult[T]) SuccessData

func (self *IchubResult[T]) SuccessData(data T) *IchubResult[T]

func (*IchubResult[T]) ToString

func (self *IchubResult[T]) ToString() string

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]

func (*PageRequest[T]) SetPageCurrent

func (self *PageRequest[T]) SetPageCurrent(current int) *PageRequest[T]

func (*PageRequest[T]) SetPageSize

func (self *PageRequest[T]) SetPageSize(size int) *PageRequest[T]

func (*PageRequest[T]) String

func (self *PageRequest[T]) String() string

func (*PageRequest[T]) ToString

func (self *PageRequest[T]) ToString() string

type PageResult

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

func DefaultResult

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

func FindBeanPageResult

func FindBeanPageResult() *PageResult[*basedto.BaseEntitySingle]

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]) Single

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

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