Documentation
¶
Index ¶
- func GetBeans(param DbParam) map[string][]BeanColumn
- func RemoveUnderscoreCapitalize(str string) string
- func RemoveUnderscoreLowercase(str string) string
- func Run()
- func WriteBean(beanMap map[string][]BeanColumn, config *Config)
- func WriteController(beanMap map[string][]BeanColumn, config *Config)
- func WriteControllerRegister(beanMap map[string][]BeanColumn)
- func WriteDao(beanMap map[string][]BeanColumn, config *Config)
- func WriteDaoOneTableProjectId(beanMap map[string][]BeanColumn, config *Config)
- func WriteService(beanMap map[string][]BeanColumn, config *Config)
- type BeanColumn
- type Columns
- type Config
- type DbParam
- type TableConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBeans ¶
func GetBeans(param DbParam) map[string][]BeanColumn
func RemoveUnderscoreCapitalize ¶
去掉下划线, 首字母大写 . ExtYidunConfig
func RemoveUnderscoreLowercase ¶
去掉下划线, 首字母不大写 . demo: extYidunConfig
func WriteBean ¶
func WriteBean(beanMap map[string][]BeanColumn, config *Config)
func WriteController ¶
func WriteController(beanMap map[string][]BeanColumn, config *Config)
func WriteControllerRegister ¶
func WriteControllerRegister(beanMap map[string][]BeanColumn)
func WriteDao ¶
func WriteDao(beanMap map[string][]BeanColumn, config *Config)
func WriteDaoOneTableProjectId ¶
func WriteDaoOneTableProjectId(beanMap map[string][]BeanColumn, config *Config)
func WriteService ¶
func WriteService(beanMap map[string][]BeanColumn, config *Config)
Types ¶
type BeanColumn ¶
type Columns ¶
type Columns struct { TableName string `gorm:"column:TABLE_NAME" json:"tableName"` ColumnName string `gorm:"column:COLUMN_NAME" ` DataType string `gorm:"column:DATA_TYPE" ` Ordinal int `gorm:"column:ORDINAL_POSITION" ` COLUMN_COMMENT string `gorm:"column:COLUMN_COMMENT" ` COLUMN_TYPE string `gorm:"column:COLUMN_TYPE" ` }
type TableConfig ¶
Click to show internal directories.
Click to hide internal directories.