Documentation
¶
Index ¶
- type ListParams
- type ListResult
- type Service
- func (s *Service[T]) Create(initBody func(req *resty.Request)) (result T, err error)
- func (s *Service[T]) Delete(id string, params *url.Values) (result base.Message, err error)
- func (s *Service[T]) FirstListItem(params *ListParams) (record T, err error)
- func (s *Service[T]) FullList(batch int, params *ListParams) (list []T, err error)
- func (s *Service[T]) List(params *ListParams) (result ListResult[T], err error)
- func (s *Service[T]) One(id string, params *url.Values) (result T, err error)
- func (s *Service[T]) Update(id string, initBody func(req *resty.Request)) (result T, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListParams ¶
func (*ListParams) ToValues ¶
func (params *ListParams) ToValues() url.Values
type ListResult ¶
type Service ¶
func (*Service[T]) FirstListItem ¶ added in v0.0.2
func (s *Service[T]) FirstListItem(params *ListParams) (record T, err error)
func (*Service[T]) FullList ¶
func (s *Service[T]) FullList(batch int, params *ListParams) (list []T, err error)
func (*Service[T]) List ¶
func (s *Service[T]) List(params *ListParams) (result ListResult[T], err error)
Click to show internal directories.
Click to hide internal directories.