Documentation ¶
Index ¶
- Variables
- func CheckInTable(columns []string, find string) bool
- func GetNewFormList(old []types.FormStruct) []types.FormStruct
- func GetPaginator(path string, pageInt int, page, pageSize, sortField, sortType string, size int) types.PaginatorAttribute
- func GetStringFromType(typeName string, value interface{}) string
- func InitTableList()
- func RefreshTableList()
- func SetGenerators(generators map[string]TableGenerator)
- type Columns
- type Table
- func (tableModel Table) DeleteDataFromDatabase(prefix string, id string)
- func (tableModel Table) GetDataFromDatabase(queryParam map[string]string) ([]map[string]string, []map[string]template.HTML, types.PaginatorAttribute, ...)
- func (tableModel Table) GetDataFromDatabaseWithId(prefix string, id string) ([]types.FormStruct, string, string)
- func (tableModel Table) InsertDataFromDatabase(prefix string, dataList map[string][]string)
- func (tableModel Table) UpdateDataFromDatabase(prefix string, dataList map[string][]string)
- type TableGenerator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Generators = map[string]TableGenerator{} TableList = map[string]Table{} )
Functions ¶
func CheckInTable ¶
CheckInTable checks the find string is in the columns or not.
func GetNewFormList ¶
func GetNewFormList(old []types.FormStruct) []types.FormStruct
func GetPaginator ¶
func GetStringFromType ¶
func InitTableList ¶
func InitTableList()
func RefreshTableList ¶
func RefreshTableList()
RefreshTableList refresh the table list when the table relationship changed.
func SetGenerators ¶
func SetGenerators(generators map[string]TableGenerator)
Types ¶
type Table ¶
func GetManagerTable ¶
func GetManagerTable() (ManagerTable Table)
func GetMenuTable ¶
func GetMenuTable() (MenuTable Table)
func GetOpTable ¶
func GetOpTable() (OpTable Table)
func GetPermissionTable ¶
func GetPermissionTable() (PermissionTable Table)
func GetRolesTable ¶
func GetRolesTable() (RolesTable Table)
func (Table) DeleteDataFromDatabase ¶
DeleteDataFromDatabase delete data.
func (Table) GetDataFromDatabase ¶
func (tableModel Table) GetDataFromDatabase(queryParam map[string]string) ([]map[string]string, []map[string]template.HTML, types.PaginatorAttribute, string, string)
GetDataFromDatabase query the data set.
func (Table) GetDataFromDatabaseWithId ¶
func (tableModel Table) GetDataFromDatabaseWithId(prefix string, id string) ([]types.FormStruct, string, string)
GetDataFromDatabaseWithId query the single row of data.
func (Table) InsertDataFromDatabase ¶
InsertDataFromDatabase insert data.
type TableGenerator ¶
type TableGenerator func() Table
Click to show internal directories.
Click to hide internal directories.