module

package
v2.9.9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CmdNew represents the new command.
	CmdNew = &cobra.Command{
		Use:   "mp",
		Short: "数据模型层",
		Long:  "创建数据库模型层: toolkit mp dir table_name",
		Run:   Run,
	}
)

Functions

func GenerateModule

func GenerateModule(moduleParam base.ModuleParam, fullModuleDir, tableName string)

func GenerateProto

func GenerateProto(moduleParam base.ModuleParam, fullProtoDir, tableName string)

func ModuleTemplate

func ModuleTemplate() string

ModuleTemplate 模板

func ProtoTemplate

func ProtoTemplate() string

func Run

func Run(cmd *cobra.Command, args []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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