Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnInfo ¶ added in v0.0.36
type ColumnInfo struct { Field string `json:"field"` Name string `json:"name"` IsEdit bool `json:"isEdit" json:"is_edit"` Md5Encrypt bool `json:"md5Encrypt" json:"md5_encrypt"` Type string `json:"type"` Require bool `json:"require"` Disabled bool `json:"disabled"` IgnoreField bool `json:"ignoreField" json:"ignore_field"` DictQuery DictInfo `json:"dictQuery" json:"dict_query"` }
type ColumnInfos ¶ added in v0.0.36
type ColumnInfos []ColumnInfo
func (ColumnInfos) HasField ¶ added in v0.0.36
func (columns ColumnInfos) HasField(field string) bool
type DictInfo ¶ added in v0.0.37
type DictInfo struct { Table string `json:"table"` IdField string `json:"idField" json:"id_field"` NameField string `json:"nameField" json:"name_field"` Conditions []express.ConditionInfo `json:"conditions"` GroupByFields []string `json:"groupByFields" json:"group_by_fields"` // contains filtered or unexported fields }
type HandleFunc ¶
HandleFunc defines the handler used by gin middleware as return value.
type HandleMap ¶
type HandleMap map[string]HandleFunc
type Options ¶ added in v0.0.12
type Options struct { Handles HandleMap ModelMapper map[string]interface{} OnBeforeStart func(eng *gin.Engine, config *config.AppConfig) OnUpload func(ctx *gin.Context, filename string, bytes []byte, config *config.AppConfig) (bool, string) OnDownload func(ctx *gin.Context, filename string, file interface{}, config *config.AppConfig) bool OnCreate func(ctx *gin.Context, params *map[string]interface{}, config *config.AppConfig) bool OnUpdate func(ctx *gin.Context, params *map[string]interface{}, config *config.AppConfig) bool OnRead func(ctx *gin.Context, data *entity.Result, config *config.AppConfig) bool OnDelete func(ctx *gin.Context, params *map[string]interface{}, config *config.AppConfig) bool DisableFastApi bool }
Click to show internal directories.
Click to hide internal directories.