Documentation ¶
Index ¶
- func InjectPageResult(s *PageResult[*basedto.BaseEntitySingle])
- func LoadPageResult() baseiface.ISingleton
- type IchubResult
- func (self *IchubResult[T]) FailMsg(msg string) *IchubResult[T]
- func (self *IchubResult[T]) From(result *basedto.IchubResult) *IchubResult[T]
- func (self *IchubResult[T]) NewOfPtrType() T
- func (self *IchubResult[T]) String() string
- func (self *IchubResult[T]) SuccessData(data T) *IchubResult[T]
- func (self *IchubResult[T]) ToString() string
- type PageRequest
- type PageResult
- func DefaultResult[T any]() *PageResult[T]
- func FindBeanPageResult() *PageResult[*basedto.BaseEntitySingle]
- func FromPageEsResult[T baseiface.IpoolObj](result *pagees.PageEsResult) *PageResult[T]
- func FromPageResult[T baseiface.IpoolObj](result *page.PageResult) *PageResult[T]
- func NewPageResult[T any]() *PageResult[T]
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]
Click to show internal directories.
Click to hide internal directories.