Documentation
¶
Index ¶
- func CheckFileExist(filepath string, fileName string, fileType string, ext string, i int) string
- func CheckUnique(c *fiber.Ctx) error
- func Clear(v interface{})
- func Edit(c *fiber.Ctx, dataform Dataform, id string) error
- func Exec(c *fiber.Ctx, schemaId string, action string, id string, ...) error
- func GetData(c *fiber.Ctx, action string, id string, dataform Dataform) (*map[string]interface{}, error)
- func GetInt(value interface{}) int
- func GetTableData(query string, table string, where_value string, order_value string) []map[string]interface{}
- func IsInt(s string) bool
- func Options(c *fiber.Ctx, dataform Dataform) error
- func OptionsData(relation models.Relation, c *fiber.Ctx) []map[string]interface{}
- func SetCondition(condition string, c *fiber.Ctx, VBSchema lbModel.VBSchema) error
- func SetConditionOracle(condition string, c *fiber.Ctx, VBSchema lbModel.VBSchemaOracle) error
- func Store(c *fiber.Ctx, dataform Dataform, action string, id string) error
- func Upload(c *fiber.Ctx) error
- type Dataform
- type FormOption
- type RalationOption
- type Ralation_
- type Relations
- type UniquePost
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileExist ¶
func CheckUnique ¶
func CheckUnique(c *fiber.Ctx) error
func GetTableData ¶
func OptionsData ¶
func SetCondition ¶
func SetConditionOracle ¶
func SetConditionOracle(condition string, c *fiber.Ctx, VBSchema lbModel.VBSchemaOracle) error
Types ¶
type Dataform ¶
type Dataform struct {
Name string
Identity string
Table string
Model interface{}
FieldTypes map[string]string
Formulas []models.Formula
ValidationRules map[string][]string
ValidationMessages map[string][]string
SubForms []map[string]interface{}
BeforeInsert func(interface{})
BeforeUpdate func(interface{})
AfterInsert func(interface{})
AfterUpdate func(interface{})
TriggerNameSpace string
Relations map[string]models.Relation
}
type FormOption ¶
type FormOption struct {
Label interface{} `gorm:"column:label" json:"label"`
Value int `gorm:"column:value;type:uuid" json:"value"`
ParentValue interface{} `gorm:"column:parent_value" json:"parent_value"`
}
type RalationOption ¶
type RalationOption struct {
Fields []string `json:"Fields"`
FilterWithUser []map[string]string `json:"filterWithUser"`
Filter string `json:"filter"`
Key string `json:"key"`
SortField string `json:"sortField"`
SortOrder string `json:"sortOrder"`
Table string `json:"table"`
ParentFieldOfForm string `json:"parentFieldOfForm"`
ParentFieldOfTable string `json:"parentFieldOfTable"`
}
type Ralation_ ¶
type Ralation_ struct {
Fields []string `json:"Fields"`
FilterWithUser []map[string]string `json:"filterWithUser"`
Filter string `json:"filter"`
Key string `json:"key"`
Multiple bool `json:"multiple"`
ParentFieldOfForm string `json:"parentFieldOfForm"`
ParentFieldOfTable string `json:"parentFieldOfTable"`
SortField string `json:"sortField"`
SortOrder string `json:"sortOrder"`
Table string `json:"table"`
}
type UniquePost ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.