mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-09-22 03:06:39 +08:00
36 lines
661 B
Go
36 lines
661 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/util/gtag"
|
|
)
|
|
|
|
var (
|
|
Gen = cGen{}
|
|
)
|
|
|
|
type cGen struct {
|
|
g.Meta `name:"gen" brief:"{cGenBrief}" dc:"{cGenDc}"`
|
|
cGenDao
|
|
cGenEnums
|
|
cGenPb
|
|
cGenPbEntity
|
|
cGenService
|
|
}
|
|
|
|
const (
|
|
cGenBrief = `automatically generate go files for dao/do/entity/pb/pbentity`
|
|
cGenDc = `
|
|
The "gen" command is designed for multiple generating purposes.
|
|
It's currently supporting generating go files for ORM models, protobuf and protobuf entity files.
|
|
Please use "gf gen dao -h" for specified type help.
|
|
`
|
|
)
|
|
|
|
func init() {
|
|
gtag.Sets(g.MapStrStr{
|
|
`cGenBrief`: cGenBrief,
|
|
`cGenDc`: cGenDc,
|
|
})
|
|
}
|