handlers

package
v0.7.96 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterSave

func AfterSave(vb models.VBSchema, type_ string) error

func AfterSaveOracle

func AfterSaveOracle(vb models.VBSchemaOracle, type_ string) error

func BeforeDelete

func BeforeDelete(id uint64, type_ string)

func BeforeSave

func BeforeSave(id uint64, type_ string, vbs *vb_schema)

func BuildMe

func BuildMe(c *fiber.Ctx) (err error)

func CreateRole

func CreateRole(c *fiber.Ctx) error

func DeleteProjectVB

func DeleteProjectVB(c *fiber.Ctx) error

func DeleteRole

func DeleteRole(c *fiber.Ctx) error

func DeleteVB

func DeleteVB(c *fiber.Ctx) error

func GetDBCHEMA

func GetDBCHEMA() []byte

func GetKrudFields

func GetKrudFields(c *fiber.Ctx) error

func GetKrudFieldsConsole

func GetKrudFieldsConsole(c *fiber.Ctx) error

func GetLambdaSCHEMA

func GetLambdaSCHEMA()

func GetMenuVB

func GetMenuVB(c *fiber.Ctx) error

func GetOptions

func GetOptions(c *fiber.Ctx) error

func GetProjectVB

func GetProjectVB(c *fiber.Ctx) error

func GetProjectVBs

func GetProjectVBs(c *fiber.Ctx) error

func GetRoleData

func GetRoleData() error

func GetRolesMenus

func GetRolesMenus(c *fiber.Ctx) error

func GetTableSchema

func GetTableSchema(c *fiber.Ctx) error

func GetVB

func GetVB(c *fiber.Ctx) error

func GridVB

func GridVB(GetGridMODEL func(schema_id string) datagrid.Datagrid) fiber.Handler

func Index

func Index(c *fiber.Ctx) error

func SaveProjectVB

func SaveProjectVB(modelName string) fiber.Handler

func SaveRole

func SaveRole(c *fiber.Ctx) error

func SaveVB

func SaveVB(modelName string) fiber.Handler

func UpdateRole

func UpdateRole(c *fiber.Ctx) error

func UploadDBSCHEMA

func UploadDBSCHEMA() (*pb.Response, error)

Types

type CloudData

type CloudData struct {
	GridSchemas       []genertarModels.ProjectSchemas `json:"grid-schemas"`
	FormSchemas       []genertarModels.ProjectSchemas `json:"form-schemas"`
	MenuSchemas       []genertarModels.ProjectSchemas `json:"menu-schemas"`
	ChartSchemas      []genertarModels.ProjectSchemas `json:"chart-schemas"`
	MoqupSchemas      []genertarModels.ProjectSchemas `json:"moqup-schemas"`
	DatasourceSchemas []genertarModels.ProjectSchemas `json:"datasource-schemas"`
	GraphqlSchemas    []genertarModels.ProjectSchemas `json:"graphql-schemas"`
	Projects          []models.Projects               `json:"projects"`
	ProjectSettings   []models.ProjectSettings        `json:"project-settings"`
}

type Role

type Role struct {
	ID          int                    `json:"id"`
	Permissions map[string]interface{} `json:"permissions"`
	Extra       map[string]interface{} `json:"extra"`
}

func (*Role) TableName

func (v *Role) TableName() string

TableName sets the insert table name for this struct type

type RoleNew

type RoleNew struct {
	Description string `json:"description"`
	DisplayName string `json:"display_name"`
	Name        string `json:"name"`
}

Jump to

Keyboard shortcuts

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