Documentation ¶
Index ¶
- type GenericView
- func (v *GenericView) Create(appCtx *appctx.AppContext)
- func (v *GenericView) Delete(appCtx *appctx.AppContext)
- func (v *GenericView) GetFilteredFields() []filters.FilterQuerySet
- func (v *GenericView) GetMethods() []views.ViewSetMethod
- func (v *GenericView) GetPermissionModule() string
- func (v *GenericView) GetQuerySet(db *gorm.DB, appCtx *appctx.AppContext) *gorm.DB
- func (v *GenericView) GetSerializer() serializers.SerializerModels
- func (v *GenericView) GetSerializerModels() serializers.SerializerModels
- func (v *GenericView) GetSliceSerializerModels() interface{}
- func (v *GenericView) GetSortAllowFields() []filters.FilterQuerySet
- func (*GenericView) GetViewType() views.ViewType
- func (v *GenericView) List(appCtx *appctx.AppContext)
- func (v *GenericView) Retrieve(appCtx *appctx.AppContext)
- func (v *GenericView) Update(appCtx *appctx.AppContext)
- type ReferenceBookView
- func (rb *ReferenceBookView) Create(appCtx *appctx.AppContext)
- func (rb *ReferenceBookView) Delete(appCtx *appctx.AppContext)
- func (rb *ReferenceBookView) Get(appCtx *appctx.AppContext)
- func (*ReferenceBookView) GetMethods() []views.ViewSetMethod
- func (rb *ReferenceBookView) List(appCtx *appctx.AppContext)
- func (rb *ReferenceBookView) Retrieve(appCtx *appctx.AppContext)
- func (rb *ReferenceBookView) Update(appCtx *appctx.AppContext)
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)
Click to show internal directories.
Click to hide internal directories.