Documentation ¶
Index ¶
- func CamelField(str string) string
- func CheckUidSeed(msg *descriptor.DescriptorProto, uid *options.UidOptions) error
- func CleanImports(pFileText *string) *string
- func CleanImportsDao(pFileText *string) *string
- func CleanImportsTs(pFileText *string) *string
- func GetApiCfgExtension(opt *descriptor.ServiceOptions) *options.ApiConfig
- func GetApiExtension(opt *descriptor.MethodOptions) *options.LazyApi
- func GetApiRouteExtension(opt *descriptor.ServiceOptions) string
- func GetDaoExtension(opt *descriptor.MessageOptions) *options.DaoOptions
- func GetMessageName(str string) string
- func GetSvcExtension(opt *descriptor.MethodOptions) *options.ServiceImp
- type Api
- type DaoPlugin
- func (p *DaoPlugin) DbSelect(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
- func (p *DaoPlugin) Delete(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
- func (p *DaoPlugin) Exec(sql *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
- func (p *DaoPlugin) Generate(file *generator.FileDescriptor)
- func (p *DaoPlugin) GenerateImports(file *generator.FileDescriptor)
- func (p *DaoPlugin) Init(g *generator.Generator)
- func (p *DaoPlugin) Insert(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
- func (p *DaoPlugin) Name() string
- func (p *DaoPlugin) OrmSelect(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
- func (p *DaoPlugin) Update(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
- type SvcPlugin
- type TsPlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelField ¶
func CheckUidSeed ¶
func CheckUidSeed(msg *descriptor.DescriptorProto, uid *options.UidOptions) error
func CleanImports ¶
CleanImports removes extraneous imports and lines from a proto response file Content
func CleanImportsDao ¶
func CleanImportsTs ¶
func GetApiCfgExtension ¶
func GetApiCfgExtension(opt *descriptor.ServiceOptions) *options.ApiConfig
func GetApiExtension ¶
func GetApiExtension(opt *descriptor.MethodOptions) *options.LazyApi
func GetApiRouteExtension ¶
func GetApiRouteExtension(opt *descriptor.ServiceOptions) string
func GetDaoExtension ¶
func GetDaoExtension(opt *descriptor.MessageOptions) *options.DaoOptions
func GetMessageName ¶
func GetSvcExtension ¶
func GetSvcExtension(opt *descriptor.MethodOptions) *options.ServiceImp
Types ¶
type DaoPlugin ¶
func (*DaoPlugin) DbSelect ¶
func (p *DaoPlugin) DbSelect(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
func (*DaoPlugin) Delete ¶
func (p *DaoPlugin) Delete(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
func (*DaoPlugin) Exec ¶
func (p *DaoPlugin) Exec(sql *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
func (*DaoPlugin) Generate ¶
func (p *DaoPlugin) Generate(file *generator.FileDescriptor)
func (*DaoPlugin) GenerateImports ¶
func (p *DaoPlugin) GenerateImports(file *generator.FileDescriptor)
func (*DaoPlugin) Insert ¶
func (p *DaoPlugin) Insert(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
func (*DaoPlugin) OrmSelect ¶
func (p *DaoPlugin) OrmSelect(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
func (*DaoPlugin) Update ¶
func (p *DaoPlugin) Update(sq *options.SqlOptions, msg *generator.Descriptor, fname, dbt string)
type SvcPlugin ¶
func (*SvcPlugin) Generate ¶
func (p *SvcPlugin) Generate(file *generator.FileDescriptor)
func (*SvcPlugin) GenerateImports ¶
func (p *SvcPlugin) GenerateImports(file *generator.FileDescriptor)
type TsPlugin ¶
func (*TsPlugin) Generate ¶
func (p *TsPlugin) Generate(file *generator.FileDescriptor)
func (*TsPlugin) GenerateImports ¶
func (p *TsPlugin) GenerateImports(file *generator.FileDescriptor)
Click to show internal directories.
Click to hide internal directories.