command

package
v0.0.0-...-5cf9733 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonInterface

type CommonInterface interface {
	RegisterCmds() []Interface
}

type GormGenCommand

type GormGenCommand struct {
	// contains filtered or unexported fields
}

func NewGenCommand

func NewGenCommand(db *gorm.DB, config gen.Config, options ...Options) (*GormGenCommand, error)

NewGenCommand ...

func (*GormGenCommand) GenModels

func (c *GormGenCommand) GenModels()

GenModels 生成模型和dao

type Interface

type Interface interface {
	Command() *cli.Command
}

type Options

type Options interface {
	// contains filtered or unexported methods
}

type OptionsFunc

type OptionsFunc struct {
	// contains filtered or unexported fields
}

func WithDataTypeMap

func WithDataTypeMap(dataTypeMap map[string]func(detailType gorm.ColumnType) (dataType string)) *OptionsFunc

func WithIgnoreFields

func WithIgnoreFields(ignoreFields ...string) *OptionsFunc

func WithTableMethods

func WithTableMethods(tableMethods entity.MethodMaps) *OptionsFunc

func WithTables

func WithTables(tables ...string) *OptionsFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL