Documentation ¶
Index ¶
- func Stru2Filter(datas []schema.Tabler, filterFields string) []any
- type IchubResult
- type PageRequest
- type PageResult
- func DefaultResult[T any]() *PageResult[T]
- func From[T schema.Tabler](result *page.PageResult) *PageResult[T]
- 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]
- func (self *PageResult[T]) ExistData() bool
- func (self *PageResult[T]) ExistRecord() bool
- func (self *PageResult[T]) FromPageResult(result *page.PageResult) *PageResult[T]
- func (self *PageResult[T]) Result2One() T
- func (self *PageResult[T]) Result2Stru(out any) error
- func (self *PageResult[T]) Stru2Filter(datas []schema.Tabler, filterFields string) []any
- func (self *PageResult[T]) ValueOf(result *pagees.PageEsResult) *PageResult[T]
- func (self *PageResult[T]) ValueOfPageResult(result *page.PageResult) *PageResult[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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]
Click to show internal directories.
Click to hide internal directories.