Documentation ¶
Index ¶
- Variables
- func GenerateModule(moduleParam base.ModuleParam, fullModuleDir, tableName string)
- func GenerateProto(moduleParam base.ModuleParam, fullProtoDir, fullServiceDir, tableName string)
- func GenerateService(moduleParam base.ModuleParam, fullServiceDir, tableName string)
- func ModuleTemplate() string
- func ProtoTemplate() string
- func Run(cmd *cobra.Command, args []string)
- func ServiceTemplate() string
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 ¶ added in v3.2.16
func GenerateModule(moduleParam base.ModuleParam, fullModuleDir, tableName string)
func GenerateProto ¶ added in v3.2.16
func GenerateProto(moduleParam base.ModuleParam, fullProtoDir, fullServiceDir, tableName string)
func GenerateService ¶ added in v3.2.22
func GenerateService(moduleParam base.ModuleParam, fullServiceDir, tableName string)
func ProtoTemplate ¶ added in v3.2.16
func ProtoTemplate() string
func ServiceTemplate ¶ added in v3.2.22
func ServiceTemplate() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.