Documentation ¶
Index ¶
Constants ¶
View Source
const ( CGenPbEntityConfig = `gfcli.gen.pbentity` CGenPbEntityBrief = `generate entity message files in protobuf3 format` CGenPbEntityEg = `` /* 250-byte string literal not displayed */ CGenPbEntityAd = `` /* 910-byte string literal not displayed */ CGenPbEntityBriefPath = `directory path for generated files storing` CGenPbEntityBriefPackage = `package path for all entity proto files` CGenPbEntityBriefLink = `database configuration, the same as the ORM configuration of GoFrame` CGenPbEntityBriefTables = `generate models only for given tables, multiple table names separated with ','` CGenPbEntityBriefPrefix = `add specified prefix for all entity names and entity proto files` CGenPbEntityBriefRemovePrefix = `remove specified prefix of the table, multiple prefix separated with ','` CGenPbEntityBriefOption = `extra protobuf options` CGenPbEntityBriefGroup = `` /* 135-byte string literal not displayed */ CGenPbEntityBriefNameCase = `` /* 433-byte string literal not displayed */ CGenPbEntityBriefJsonCase = `` /* 132-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CGenPbEntity ¶
type CGenPbEntity struct{}
func (CGenPbEntity) PbEntity ¶
func (c CGenPbEntity) PbEntity(ctx context.Context, in CGenPbEntityInput) (out *CGenPbEntityOutput, err error)
type CGenPbEntityInput ¶
type CGenPbEntityInput struct { g.Meta `name:"pbentity" config:"{CGenPbEntityConfig}" brief:"{CGenPbEntityBrief}" eg:"{CGenPbEntityEg}" ad:"{CGenPbEntityAd}"` Path string `name:"path" short:"p" brief:"{CGenPbEntityBriefPath}" d:"manifest/protobuf/pbentity"` Package string `name:"package" short:"k" brief:"{CGenPbEntityBriefPackage}"` Link string `name:"link" short:"l" brief:"{CGenPbEntityBriefLink}"` Tables string `name:"tables" short:"t" brief:"{CGenPbEntityBriefTables}"` Prefix string `name:"prefix" short:"f" brief:"{CGenPbEntityBriefPrefix}"` RemovePrefix string `name:"removePrefix" short:"r" brief:"{CGenPbEntityBriefRemovePrefix}"` NameCase string `name:"nameCase" short:"n" brief:"{CGenPbEntityBriefNameCase}" d:"Camel"` JsonCase string `name:"jsonCase" short:"j" brief:"{CGenPbEntityBriefJsonCase}" d:"CamelLower"` Option string `name:"option" short:"o" brief:"{CGenPbEntityBriefOption}"` }
type CGenPbEntityInternalInput ¶
type CGenPbEntityInternalInput struct { CGenPbEntityInput DB gdb.DB TableName string // TableName specifies the table name of the table. NewTableName string // NewTableName specifies the prefix-stripped name of the table. }
type CGenPbEntityOutput ¶
type CGenPbEntityOutput struct{}
Click to show internal directories.
Click to hide internal directories.