Versions in this module Expand all Collapse all v1 v1.2.13 May 18, 2020 v1.2.12 May 18, 2020 Changes in this version + const DefaultConnectionName + const DefaultPrimaryKeyName + func SetServices(srv service.List) + type BaseTable struct + CanAdd bool + Deletable bool + Detail *types.InfoPanel + Editable bool + Exportable bool + Form *types.FormPanel + Info *types.InfoPanel + PrimaryKey PrimaryKey + func (base *BaseTable) GetCanAdd() bool + func (base *BaseTable) GetDeletable() bool + func (base *BaseTable) GetDetail() *types.InfoPanel + func (base *BaseTable) GetEditable() bool + func (base *BaseTable) GetExportable() bool + func (base *BaseTable) GetForm() *types.FormPanel + func (base *BaseTable) GetInfo() *types.InfoPanel + func (base *BaseTable) GetPaginator(size int, params parameter.Parameters, extraHtml ...template.HTML) types.PaginatorAttribute + func (base *BaseTable) GetPrimaryKey() PrimaryKey + func (base *BaseTable) IsShowDetail() bool + type Columns []string + type Config struct + CanAdd bool + Connection string + Deletable bool + Driver string + Editable bool + Exportable bool + GetDataFun GetDataFun + PrimaryKey PrimaryKey + SourceURL string + func DefaultConfig() Config + func DefaultConfigWithDriver(driver string) Config + func DefaultConfigWithDriverAndConnection(driver, conn string) Config + func (config Config) SetCanAdd(canAdd bool) Config + func (config Config) SetConnection(connection string) Config + func (config Config) SetDeletable(deletable bool) Config + func (config Config) SetEditable(editable bool) Config + func (config Config) SetExportable(exportable bool) Config + func (config Config) SetGetDataFun(fun GetDataFun) Config + func (config Config) SetPrimaryKeyType(typ string) Config + func (config Config) SetSourceURL(url string) Config + type DefaultTable struct + func (tb DefaultTable) Copy() Table + func (tb DefaultTable) DeleteData(id string) error + func (tb DefaultTable) GetData(params parameter.Parameters) (PanelInfo, error) + func (tb DefaultTable) GetDataWithId(param parameter.Parameters) (FormInfo, error) + func (tb DefaultTable) GetDataWithIds(params parameter.Parameters) (PanelInfo, error) + func (tb DefaultTable) GetNewForm() FormInfo + func (tb DefaultTable) InsertData(dataList form.Values) error + func (tb DefaultTable) UpdateData(dataList form.Values) error + type FormInfo struct + Description string + FieldList types.FormFields + GroupFieldHeaders types.GroupFieldHeaders + GroupFieldList types.GroupFormFields + Title string + type Generator func(ctx *context.Context) Table + type GeneratorList map[string]Generator + func (g GeneratorList) Add(key string, gen Generator) + func (g GeneratorList) Combine(gg GeneratorList) GeneratorList + func (g GeneratorList) CombineAll(ggg []GeneratorList) GeneratorList + func (g GeneratorList) InjectRoutes(app *context.App, srv service.List) + type GetDataFromURLRes struct + Data []map[string]interface{} + Size int + type GetDataFun func(params parameter.Parameters) ([]map[string]interface{}, int) + type PanelInfo struct + Description string + FilterFormData types.FormFields + InfoList types.InfoList + Paginator types.PaginatorAttribute + Thead types.Thead + Title string + type PrimaryKey struct + Name string + Type db.DatabaseType + type SystemTable struct + func NewSystemTable(conn db.Connection) *SystemTable + func (s *SystemTable) GetManagerTable(ctx *context.Context) (ManagerTable Table) + func (s *SystemTable) GetMenuTable(ctx *context.Context) (MenuTable Table) + func (s *SystemTable) GetNormalManagerTable(ctx *context.Context) (ManagerTable Table) + func (s *SystemTable) GetOpTable(ctx *context.Context) (OpTable Table) + func (s *SystemTable) GetPermissionTable(ctx *context.Context) (PermissionTable Table) + func (s *SystemTable) GetRolesTable(ctx *context.Context) (RolesTable Table) + type Table interface + Copy func() Table + DeleteData func(id string) error + GetCanAdd func() bool + GetData func(params parameter.Parameters) (PanelInfo, error) + GetDataWithId func(params parameter.Parameters) (FormInfo, error) + GetDataWithIds func(params parameter.Parameters) (PanelInfo, error) + GetDeletable func() bool + GetDetail func() *types.InfoPanel + GetEditable func() bool + GetExportable func() bool + GetForm func() *types.FormPanel + GetInfo func() *types.InfoPanel + GetNewForm func() FormInfo + GetPrimaryKey func() PrimaryKey + InsertData func(dataList form.Values) error + IsShowDetail func() bool + UpdateData func(dataList form.Values) error + func NewDefaultTable(cfgs ...Config) Table