server

package
v0.0.0-...-41ad4b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 Create

func Create(c *base.Context) error

func Destroy

func Destroy(c echo.Context) error

func List

func List(c echo.Context) error

func ListByTreeId

func ListByTreeId(c echo.Context) error

func Retrieve

func Retrieve(c echo.Context) error

func TagCreate

func TagCreate(c *base.Context) error

func TagDestroy

func TagDestroy(c echo.Context) error

func TagList

func TagList(c echo.Context) error

func TagRetrieve

func TagRetrieve(c echo.Context) error

func TagUpdate

func TagUpdate(c echo.Context) error

func TreeMigrate

func TreeMigrate(c echo.Context) error

func Update

func Update(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 (c *Serializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)

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 (c *TagSerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)

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 (c *TreeSerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)

func (*TreeSerializer) Response

func (c *TreeSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL