Versions in this module Expand all Collapse all v1 v1.0.0 Feb 14, 2024 Changes in this version + func DisplayFieldToSql(table string, field *schema.Field, concat bool) string + func DisplayPatternToSql(pattern string, modelSchema *schema.Schema, table string, nested bool) (string, map[string]*params.Conditions) + func PermissionsPrefix(model interface{}) string + type BaseModel struct + DISPLAY_NAME string + Delete bool + func (BaseModel) QueryDISPLAY_NAME(c *gin.Context, model interface{}, modelSchema *schema.Schema, table string, ...) message.Message + type ConditionsModel interface + DefaultConditions func(*gorm.DB, string) (query string, args []interface{}) + type DisplayNamePatternModel interface + DisplayNamePattern func() string + type DisplayNameRelationsModel interface + DisplayNameRelations func() []string + type JoinsModel interface + DefaultJoins func(*gorm.DB, string) string + type ModelWithPermissionsDelete interface + PermissionsDelete func(c *gin.Context) message.Message + type ModelWithPermissionsGet interface + PermissionsGet func(c *gin.Context) message.Message + type ModelWithPermissionsPatch interface + PermissionsPatch func(c *gin.Context) message.Message + type ModelWithPermissionsPost interface + PermissionsPost func(c *gin.Context) message.Message + type ModelWithPermissionsPrefix interface + PermissionsPrefix func() string + type OrderedModel interface + DefaultOrder func(*gorm.DB, string) string + type PermissionFunc func(c *gin.Context) message.Message + func PermissionsDelete(model interface{}) PermissionFunc + func PermissionsGet(model interface{}) PermissionFunc + func PermissionsPatch(model interface{}) PermissionFunc + func PermissionsPost(model interface{}) PermissionFunc + type TableModel interface + TableName func() string + type UpdateCondition struct + Field string + Operator string + Value interface{} + type UpdateConditions struct + Conditions map[string]interface{} + Default bool + Name string + type UpdateConditionsModel interface + UpdateConditions func() []UpdateConditions + type ValidationModel interface + Validate func(*gin.Context) message.Message