Versions in this module Expand all Collapse all v0 v0.1.3 Sep 20, 2024 Changes in this version + var OpenTypeFuncMap = map[consts.DataBaseType]DialectorFunc + type ApiArgument struct + HertzRepoUrl string + ProjectPath string + func NewApiArgument() *ApiArgument + func (c *ApiArgument) ParseCli(ctx *cli.Context) error + type Argument struct + Verbose bool + func GetGlobalArgs() *Argument + func NewArgument() *Argument + type ClientArgument struct + Branch string + Cwd string + GoPath string + GoPkg string + GoSrc string + SliceParam *SliceParam + Template string + Verbose bool + func NewClientArgument() *ClientArgument + func (c *ClientArgument) ParseCli(ctx *cli.Context) error + type CommonParam struct + GoMod string + IdlPath string + OutDir string + Registry string + ServerName string + Type string + type DialectorFunc func(string) gorm.Dialector + type DocArgument struct + DaoDir string + GenBase bool + GoMod string + IdlPath string + IdlType string + ModelDir string + Name string + OutDir string + PackagePrefix string + ProtoSearchPath []string + ProtocOptions []string + ThriftOptions []string + Verbose bool + func NewDocArgument() *DocArgument + func (d *DocArgument) GetThriftgoOptions(prefix string) (string, error) + func (d *DocArgument) Pack() ([]string, error) + func (d *DocArgument) ParseCli(ctx *cli.Context) error + func (d *DocArgument) Unpack(data []string) error + type FallbackArgument struct + Args []string + ToolType consts.ToolType + func NewFallbackArgument() *FallbackArgument + func (c *FallbackArgument) ParseCli(ctx *cli.Context) error + type JobArgument struct + GoMod string + JobName []string + OutDir string + PackagePrefix string + func NewJobArgument() *JobArgument + func (j *JobArgument) ParseCli(ctx *cli.Context) error + type ModelArgument struct + DSN string + ExcludeTables []string + FieldNullable bool + FieldSignable bool + FieldWithIndexTag bool + FieldWithTypeTag bool + ModelPkgName string + OnlyModel bool + OutFile string + OutPath string + SQLDir string + Tables []string + Type string + WithUnitTest bool + func NewModelArgument() *ModelArgument + func (c *ModelArgument) ParseCli(ctx *cli.Context) error + type ServerArgument struct + Branch string + Cwd string + GoPath string + GoPkg string + GoSrc string + Hex bool + SliceParam *SliceParam + Template string + Verbose bool + func NewServerArgument() *ServerArgument + func (s *ServerArgument) ParseCli(ctx *cli.Context) error + type SliceParam struct + Pass []string + ProtoSearchPath []string + func (s *SliceParam) WriteAnswer(name string, value interface{}) error