Documentation ¶
Index ¶
- 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
- type ConditionsModel
- type DisplayNamePatternModel
- type DisplayNameRelationsModel
- type JoinsModel
- type ModelWithPermissionsDelete
- type ModelWithPermissionsGet
- type ModelWithPermissionsPatch
- type ModelWithPermissionsPost
- type ModelWithPermissionsPrefix
- type OrderedModel
- type PermissionFunc
- type TableModel
- type UpdateCondition
- type UpdateConditions
- type UpdateConditionsModel
- type ValidationModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayFieldToSql ¶
func DisplayPatternToSql ¶
func PermissionsPrefix ¶
func PermissionsPrefix(model interface{}) string
Types ¶
type BaseModel ¶
type ConditionsModel ¶
type DisplayNamePatternModel ¶
type DisplayNamePatternModel interface {
DisplayNamePattern() string
}
type DisplayNameRelationsModel ¶
type DisplayNameRelationsModel interface {
DisplayNameRelations() []string
}
type ModelWithPermissionsGet ¶
type ModelWithPermissionsPrefix ¶
type ModelWithPermissionsPrefix interface {
PermissionsPrefix() string
}
type PermissionFunc ¶
func PermissionsDelete ¶
func PermissionsDelete(model interface{}) PermissionFunc
func PermissionsGet ¶
func PermissionsGet(model interface{}) PermissionFunc
func PermissionsPatch ¶
func PermissionsPatch(model interface{}) PermissionFunc
func PermissionsPost ¶
func PermissionsPost(model interface{}) PermissionFunc
type TableModel ¶
type TableModel interface {
TableName() string
}
type UpdateCondition ¶
type UpdateConditions ¶
type UpdateConditionsModel ¶
type UpdateConditionsModel interface {
UpdateConditions() []UpdateConditions
}
Click to show internal directories.
Click to hide internal directories.