Documentation ¶
Index ¶
- func BatchDelete(c echo.Context) error
- func BatchImport(c echo.Context) error
- func Create(c *base.Context) error
- func Destroy(c echo.Context) error
- func List(c echo.Context) error
- func ListByTreeId(c echo.Context) error
- func Retrieve(c echo.Context) error
- func TagCreate(c *base.Context) error
- func TagDestroy(c echo.Context) error
- func TagList(c echo.Context) error
- func TagRetrieve(c echo.Context) error
- func TagUpdate(c echo.Context) error
- func TreeMigrate(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
- type TagSerializer
- func (c *TagSerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}
- func (c *TagSerializer) GetParams() base.SerializersParams
- func (c *TagSerializer) Order() []string
- func (c *TagSerializer) Preload() []string
- func (c *TagSerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)
- func (c *TagSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent
- type TreeSerializer
- func (c *TreeSerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}
- func (c *TreeSerializer) GetParams() base.SerializersParams
- func (c *TreeSerializer) Order() []string
- func (c *TreeSerializer) Preload() []string
- func (c *TreeSerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)
- func (c *TreeSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchDelete ¶
func BatchDelete(c echo.Context) error
func BatchImport ¶
func BatchImport(c echo.Context) error
func ListByTreeId ¶
func ListByTreeId(c echo.Context) error
func TagDestroy ¶
func TagDestroy(c echo.Context) error
func TagRetrieve ¶
func TagRetrieve(c echo.Context) error
func TreeMigrate ¶
func TreeMigrate(c echo.Context) error
Types ¶
type Serializer ¶
type Serializer struct { TreeSerializer *TreeSerializer // 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
type TagSerializer ¶
type TagSerializer struct {
// contains filtered or unexported fields
}
func NewServerTagSerializer ¶
func NewServerTagSerializer() *TagSerializer
func (*TagSerializer) ExtraFilter ¶
func (c *TagSerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}
func (*TagSerializer) GetParams ¶
func (c *TagSerializer) GetParams() base.SerializersParams
func (*TagSerializer) Order ¶
func (c *TagSerializer) Order() []string
func (*TagSerializer) Preload ¶
func (c *TagSerializer) Preload() []string
func (*TagSerializer) QueryBeforeHook ¶
func (*TagSerializer) Response ¶
func (c *TagSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent
type TreeSerializer ¶
type TreeSerializer struct {
// contains filtered or unexported fields
}
func NewTreeSerializer ¶
func NewTreeSerializer() *TreeSerializer
func (*TreeSerializer) ExtraFilter ¶
func (c *TreeSerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}
func (*TreeSerializer) GetParams ¶
func (c *TreeSerializer) GetParams() base.SerializersParams
func (*TreeSerializer) Order ¶
func (c *TreeSerializer) Order() []string
func (*TreeSerializer) Preload ¶
func (c *TreeSerializer) Preload() []string
func (*TreeSerializer) QueryBeforeHook ¶
func (*TreeSerializer) Response ¶
func (c *TreeSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent
Click to show internal directories.
Click to hide internal directories.