generics

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericView

type GenericView struct {
	views.BaseView
	View views.ViewGenericAPIInterface
}

func (*GenericView) Create

func (v *GenericView) Create(appCtx *appctx.AppContext)

func (*GenericView) Delete

func (v *GenericView) Delete(appCtx *appctx.AppContext)

func (*GenericView) GetFilteredFields

func (v *GenericView) GetFilteredFields() []filters.FilterQuerySet

func (*GenericView) GetMethods

func (v *GenericView) GetMethods() []views.ViewSetMethod

func (*GenericView) GetPermissionModule

func (v *GenericView) GetPermissionModule() string

func (*GenericView) GetQuerySet

func (v *GenericView) GetQuerySet(db *gorm.DB, appCtx *appctx.AppContext) *gorm.DB

func (*GenericView) GetSerializer

func (v *GenericView) GetSerializer() serializers.SerializerModels

func (*GenericView) GetSerializerModels

func (v *GenericView) GetSerializerModels() serializers.SerializerModels

func (*GenericView) GetSliceSerializerModels

func (v *GenericView) GetSliceSerializerModels() interface{}

func (*GenericView) GetSortAllowFields

func (v *GenericView) GetSortAllowFields() []filters.FilterQuerySet

func (*GenericView) GetViewType

func (*GenericView) GetViewType() views.ViewType

func (*GenericView) List

func (v *GenericView) List(appCtx *appctx.AppContext)

func (*GenericView) Retrieve

func (v *GenericView) Retrieve(appCtx *appctx.AppContext)

func (*GenericView) Update

func (v *GenericView) Update(appCtx *appctx.AppContext)

type ReferenceBookView

type ReferenceBookView struct {
	views.BaseView
	TablesAPIViews        map[string]views.ViewInterface
	TablesGenericAPIViews map[string]map[views.ViewSetMethod]func(*appctx.AppContext)
	Docs                  []autodocs.ViewData
}

func NewReferenceBookAPIView

func NewReferenceBookAPIView(viewList []views.ViewInterface, permissions []permissions.PermissionInterface) *ReferenceBookView

func (*ReferenceBookView) Create

func (rb *ReferenceBookView) Create(appCtx *appctx.AppContext)

func (*ReferenceBookView) Delete

func (rb *ReferenceBookView) Delete(appCtx *appctx.AppContext)

func (*ReferenceBookView) Get

func (rb *ReferenceBookView) Get(appCtx *appctx.AppContext)

func (*ReferenceBookView) GetMethods

func (*ReferenceBookView) GetMethods() []views.ViewSetMethod

func (*ReferenceBookView) List

func (rb *ReferenceBookView) List(appCtx *appctx.AppContext)

func (*ReferenceBookView) Retrieve

func (rb *ReferenceBookView) Retrieve(appCtx *appctx.AppContext)

func (*ReferenceBookView) Update

func (rb *ReferenceBookView) Update(appCtx *appctx.AppContext)

Jump to

Keyboard shortcuts

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