genpbentity

package
v2.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CGenPbEntityConfig = `gfcli.gen.pbentity`
	CGenPbEntityBrief  = `generate entity message files in protobuf3 format`
	CGenPbEntityEg     = `` /* 252-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 ','`
	CGenPbEntityBriefRemoveFieldPrefix = `remove specified prefix of the field, 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}"`
	RemoveFieldPrefix string `name:"removeFieldPrefix" short:"rf" brief:"{CGenPbEntityBriefRemoveFieldPrefix}"`
	NameCase          string `name:"nameCase"          short:"n"  brief:"{CGenPbEntityBriefNameCase}" d:"Camel"`
	JsonCase          string `name:"jsonCase"          short:"j"  brief:"{CGenPbEntityBriefJsonCase}" d:"none"`
	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{}

Jump to

Keyboard shortcuts

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