{"modulePath":"github.com/GoAdminLive/go-admin","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package tools\n\n## Functions\n\n```go\nfunc Generate(param *Param) error\n```\n\n```go\nfunc GenerateTables(outputPath, packageName string, tables []string, isNew bool) error\n```\n\n```go\nfunc InsertPermissionInfoDB(conn db.Connection, name, slug, httpMethod, httpPath string)\n```\n\n```go\nfunc InsertPermissionOfTable(conn db.Connection, table string)\n```\n\n## Types\n\n```go\ntype Config struct {\n\tConnection       string        `json:\"connection\"`\n\tDriver           string        `json:\"driver\"`\n\tPackage          string        `json:\"package\"`\n\tTable            string        `json:\"table\"`\n\tSchema           string        `json:\"schema\"`\n\tOutput           string        `json:\"output\"`\n\tConn             db.Connection `json:\"conn\"`\n\tHideFilterArea   bool          `json:\"hide_filter_area\"`\n\tHideNewButton    bool          `json:\"hide_new_button\"`\n\tHideExportButton bool          `json:\"hide_export_button\"`\n\tHideEditButton   bool          `json:\"hide_edit_button\"`\n\tHideDeleteButton bool          `json:\"hide_delete_button\"`\n\tHideDetailButton bool          `json:\"hide_detail_button\"`\n\tHideFilterButton bool          `json:\"hide_filter_button\"`\n\tHideRowSelector  bool          `json:\"hide_row_selector\"`\n\tHidePagination   bool          `json:\"hide_pagination\"`\n\tHideQueryInfo    bool          `json:\"hide_query_info\"`\n\tFilterFormLayout form.Layout   `json:\"filter_form_layout\"`\n\tExtraImport      string        `json:\"extra_import\"`\n\n\tTableTitle        string `json:\"table_title\"`\n\tTableDescription  string `json:\"table_description\"`\n\tFormTitle         string `json:\"form_title\"`\n\tFormDescription   string `json:\"form_description\"`\n\tDetailTitle       string `json:\"detail_title\"`\n\tDetailDescription string `json:\"detail_description\"`\n\n\tHideContinueEditCheckBox bool `json:\"hide_continue_edit_check_box\"`\n\tHideContinueNewCheckBox  bool `json:\"hide_continue_new_check_box\"`\n\tHideResetButton          bool `json:\"hide_reset_button\"`\n\tHideBackButton           bool `json:\"hide_back_button\"`\n\n\tDetailDisplay uint8 `json:\"detail_display\"`\n\n\tExtraCode string `json:\"extra_code\"`\n}\n```\n\n```go\ntype Field struct {\n\tHead         string `json:\"head\"`\n\tName         string `json:\"name\"`\n\tDBType       string `json:\"db_type\"`\n\tFormType     string `json:\"form_type\"`\n\tFilterable   bool   `json:\"filterable\"`\n\tSortable     bool   `json:\"sortable\"`\n\tInfoEditable bool   `json:\"info_editable\"`\n\tEditable     bool   `json:\"editable\"`\n\tHide         bool   `json:\"hide\"`\n\tFormHide     bool   `json:\"form_hide\"`\n\tEditHide     bool   `json:\"edit_hide\"`\n\tCreateHide   bool   `json:\"create_hide\"`\n\tDefault      string `json:\"default\"`\n\tCanAdd       bool   `json:\"can_add\"`\n\tExtraFun     string `json:\"extra_fun\"`\n\tIsPrimaryKey bool   `json:\"is_primary_key\"`\n}\n```\n\n```go\ntype Fields []Field\n```\n\n```go\nfunc (fs Fields) GetPrimaryKey() (string, string)\n```\n\n```go\ntype Param struct {\n\tConnection string `json:\"connection\"`\n\tDriver     string `json:\"driver\"`\n\tPackage    string `json:\"package\"`\n\n\tTable      string `json:\"table\"`\n\tRowTable   string `json:\"row_table\"`\n\tTableTitle string `json:\"table_title\"`\n\tTableName  string `json:\"table_name\"`\n\n\tHideFilterArea   bool        `json:\"hide_filter_area\"`\n\tHideNewButton    bool        `json:\"hide_new_button\"`\n\tHideExportButton bool        `json:\"hide_export_button\"`\n\tHideEditButton   bool        `json:\"hide_edit_button\"`\n\tHideDeleteButton bool        `json:\"hide_delete_button\"`\n\tHideDetailButton bool        `json:\"hide_detail_button\"`\n\tHideFilterButton bool        `json:\"hide_filter_button\"`\n\tHideRowSelector  bool        `json:\"hide_row_selector\"`\n\tHidePagination   bool        `json:\"hide_pagination\"`\n\tHideQueryInfo    bool        `json:\"hide_query_info\"`\n\tFilterFormLayout form.Layout `json:\"filter_form_layout\"`\n\n\tHideContinueEditCheckBox bool `json:\"hide_continue_edit_check_box\"`\n\tHideContinueNewCheckBox  bool `json:\"hide_continue_new_check_box\"`\n\tHideResetButton          bool `json:\"hide_reset_button\"`\n\tHideBackButton           bool `json:\"hide_back_button\"`\n\n\tTablePageTitle    string `json:\"table_page_title\"`\n\tTableDescription  string `json:\"table_description\"`\n\tFormTitle         string `json:\"form_title\"`\n\tFormDescription   string `json:\"form_description\"`\n\tDetailTitle       string `json:\"detail_title\"`\n\tDetailDescription string `json:\"detail_description\"`\n\n\tExtraImport string `json:\"extra_import\"`\n\tExtraCode   string `json:\"extra_code\"`\n\n\tFields       Fields `json:\"fields\"`\n\tFormFields   Fields `json:\"form_fields\"`\n\tDetailFields Fields `json:\"detail_fields\"`\n\n\tPrimaryKey     string `json:\"primary_key\"`\n\tPrimaryKeyType string `json:\"primary_key_type\"`\n\n\tDetailDisplay uint8 `json:\"detail_display\"`\n\n\tOutput string `json:\"output\"`\n}\n```\n\n```go\nfunc NewParam(cfg Config) *Param\n```\n\n```go\nfunc NewParamWithFields(cfg Config, fields ...Fields) *Param\n```\n\n","path":"github.com/GoAdminLive/go-admin/plugins/admin/modules/tools","name":"tools","synopsis":"","isRedistributable":true}
