Documentation
¶
Index ¶
- func Create(c *base.Context) error
- func Delete(c echo.Context) error
- func List(c *base.Context) error
- func Retrieve(c echo.Context) error
- func Update(c echo.Context) error
- type Serializer
- func (c *Serializer) ExtraFilter(query map[string]interface{}) map[string]interface{}
- func (c *Serializer) GetParams() base.SerializersParams
- func (c *Serializer) Order() []string
- func (c *Serializer) Preload() []string
- func (c *Serializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)
- func (c *Serializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
func NewSerializer ¶
func NewSerializer() *Serializer
func (*Serializer) ExtraFilter ¶
func (c *Serializer) ExtraFilter(query map[string]interface{}) map[string]interface{}
func (*Serializer) GetParams ¶
func (c *Serializer) GetParams() base.SerializersParams
func (*Serializer) Order ¶
func (c *Serializer) Order() []string
func (*Serializer) Preload ¶
func (c *Serializer) Preload() []string
func (*Serializer) QueryBeforeHook ¶
func (*Serializer) Response ¶
func (c *Serializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent
Click to show internal directories.
Click to hide internal directories.