Documentation ¶
Index ¶
- Variables
- func ConvertTemplate() string
- func GenerateConvert(moduleParam base.ModuleParam, fullConvertDir, tableName string)
- 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 ConvertTemplate ¶ added in v3.7.7
func ConvertTemplate() string
func GenerateConvert ¶ added in v3.7.7
func GenerateConvert(moduleParam base.ModuleParam, fullConvertDir, tableName string)
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
@inject_tag: db:"{{.ColumnName}}" json:"{{Helper .ColumnName}}" form:"{{Helper .ColumnName}}" uri:"{{Helper .ColumnName}}" xml:"{{Helper .ColumnName}}" proto:"{{Helper .ColumnName}}"
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.