{"modulePath":"github.com/cppfuns/go-admin","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package models\n\n## Variables\n\n```go\nvar (\n\tGenerators = map[string]TableGenerator{}\n\tTableList  = map[string]Table{}\n)\n```\n\n## Functions\n\n```go\nfunc CheckInTable(columns []string, find string) bool\n```\nCheckInTable checks the find string is in the columns or not.\n\n```go\nfunc GetNewFormList(old []types.FormStruct) []types.FormStruct\n```\n\n```go\nfunc GetPaginator(path string, pageInt int, page, pageSize, sortField, sortType string, size int) types.PaginatorAttribute\n```\n\n```go\nfunc GetStringFromType(typeName string, value interface{}) string\n```\n\n```go\nfunc InitTableList()\n```\n\n```go\nfunc RefreshTableList()\n```\nRefreshTableList refresh the table list when the table relationship changed.\n\n```go\nfunc SetGenerators(generators map[string]TableGenerator)\n```\n\n## Types\n\n```go\ntype Columns []string\n```\n\n```go\nfunc GetColumns(columnsModel []map[string]interface{}, driver string) Columns\n```\n\n```go\ntype Table struct {\n\tInfo             types.InfoPanel\n\tForm             types.FormPanel\n\tConnectionDriver string\n}\n```\n\n```go\nfunc GetManagerTable() (ManagerTable Table)\n```\n\n```go\nfunc GetMenuTable() (MenuTable Table)\n```\n\n```go\nfunc GetOpTable() (OpTable Table)\n```\n\n```go\nfunc GetPermissionTable() (PermissionTable Table)\n```\n\n```go\nfunc GetRolesTable() (RolesTable Table)\n```\n\n```go\nfunc (tableModel Table) DeleteDataFromDatabase(prefix string, id string)\n```\nDeleteDataFromDatabase delete data.\n\n```go\nfunc (tableModel Table) GetDataFromDatabase(queryParam map[string]string) ([]map[string]string, []map[string]template.HTML, types.PaginatorAttribute, string, string)\n```\nGetDataFromDatabase query the data set.\n\n```go\nfunc (tableModel Table) GetDataFromDatabaseWithId(prefix string, id string) ([]types.FormStruct, string, string)\n```\nGetDataFromDatabaseWithId query the single row of data.\n\n```go\nfunc (tableModel Table) InsertDataFromDatabase(prefix string, dataList map[string][]string)\n```\nInsertDataFromDatabase insert data.\n\n```go\nfunc (tableModel Table) UpdateDataFromDatabase(prefix string, dataList map[string][]string)\n```\nUpdateDataFromDatabase update data.\n\n```go\ntype TableGenerator func() Table\n```\n\n","path":"github.com/cppfuns/go-admin/plugins/admin/models","name":"models","synopsis":"","isRedistributable":true}
