internal

package
v0.0.0-...-02c10af Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GenCmd = &cobra.Command{
		Use:   "gen",
		Short: "生成用于数据映射的结构体,使用gorm",
		Long: `
    示例1:不带存储路径
    > lazy-struct gorm --pkg=business customer id:uint name:string
    - 'pkg=business' 结构体package business
    - 'customer' 结构体名
    - 'id:uint'  字段名:字段类型
    示例2: 带存储路径
    > lazy-struct gorm --path=dir --pkg=business customer id:uint
    - 'dir' 结构体文件将要存放的地方
    `,
		Run: run,
	}
	Dir      string // 存储地址
	Pkg      string // 包名
	Name     string // 结构体名
	Classify string // 用于数据映射 还是 配置映射
)
View Source
var (
	ImpCmd = &cobra.Command{
		Use:   "imp",
		Short: "从MySQL的表描述文件中,生成对应的映射结构",
		Long:  "",
		Run:   impRun,
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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