Documentation ¶
Index ¶
- type MysqlModelGeneratorTemplate
- type MysqlModelParam
- func (mmp MysqlModelParam) GetCrudPackageName() string
- func (mmp MysqlModelParam) GetPrimaryKey() []*descriptor.FieldDescriptorExt
- func (mmp MysqlModelParam) GetPrimaryKeyAsQueryStmt() string
- func (mmp MysqlModelParam) GetPrimaryKeyAsString(prefix, suffix, delimiter string, toLower bool, withGoType bool) string
- func (mmp MysqlModelParam) IsCreatedAt() bool
- func (mmp MysqlModelParam) IsUpdatedAt() bool
- func (mmp MysqlModelParam) NeedImportTime() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlModelGeneratorTemplate ¶
type MysqlModelGeneratorTemplate struct {
// contains filtered or unexported fields
}
func New ¶
func New(d *descriptor.Descriptor) *MysqlModelGeneratorTemplate
func (*MysqlModelGeneratorTemplate) Generate ¶
func (t *MysqlModelGeneratorTemplate) Generate() ([]*generator.GeneratorResponseFile, error)
type MysqlModelParam ¶
type MysqlModelParam struct {
*descriptor.MessageDescriptorExt
}
func (MysqlModelParam) GetCrudPackageName ¶
func (mmp MysqlModelParam) GetCrudPackageName() string
func (MysqlModelParam) GetPrimaryKey ¶
func (mmp MysqlModelParam) GetPrimaryKey() []*descriptor.FieldDescriptorExt
func (MysqlModelParam) GetPrimaryKeyAsQueryStmt ¶
func (mmp MysqlModelParam) GetPrimaryKeyAsQueryStmt() string
func (MysqlModelParam) GetPrimaryKeyAsString ¶
func (mmp MysqlModelParam) GetPrimaryKeyAsString(prefix, suffix, delimiter string, toLower bool, withGoType bool) string
func (MysqlModelParam) IsCreatedAt ¶
func (mmp MysqlModelParam) IsCreatedAt() bool
func (MysqlModelParam) IsUpdatedAt ¶
func (mmp MysqlModelParam) IsUpdatedAt() bool
func (MysqlModelParam) NeedImportTime ¶
func (mmp MysqlModelParam) NeedImportTime() bool
Click to show internal directories.
Click to hide internal directories.