Documentation ¶
Index ¶
- func Convert2PrimaryKeyType(m model.Module, paramName string) string
- func FindPayloadKeyName(m model.Result) string
- func FindPrimaryKeyName(m model.Module) string
- func HasDB(c model.Value, dbType string) bool
- func ResultDefined(m model.ModelData) bool
- func ResultInfo(m model.Result, key string) *model.Info
- func SelectModuleKey(m model.Module) string
- func SelectModulePrimaryInfo(m model.Module) *model.Info
- func SetModelMemberImport(m model.Module) string
- func SetPrimaryKeyValue(m model.Module, requestName, paramName string) string
- func SetPrimaryKeyValueImport(m model.Module) string
- func SetResultPagination(m model.Result, param string) string
- func SetResultTotal(m model.Result, param string) string
- func WithTag(m model.ModelData, modelName, originTag string) string
- func WriteGoHeader(w io.Writer, source string) error
- func WriteHeader(w io.Writer, code, source string) error
- func WriteYamlHeader(w io.Writer, source string) error
- type BuildinTemplateFactory
- type Factory
- type FileTemplateFactory
- type Generator
- type TemplGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindPayloadKeyName ¶
func FindPrimaryKeyName ¶
func ResultDefined ¶
func SelectModuleKey ¶
func SetModelMemberImport ¶
func SetPrimaryKeyValue ¶
Types ¶
type BuildinTemplateFactory ¶
type BuildinTemplateFactory struct { }
func NewBuildinTemplateFactory ¶
func NewBuildinTemplateFactory() *BuildinTemplateFactory
func (*BuildinTemplateFactory) CreateGenerator ¶
func (f *BuildinTemplateFactory) CreateGenerator(tmplPath string, funcMaps ...map[string]interface{}) Generator
type FileTemplateFactory ¶
type FileTemplateFactory struct {
// contains filtered or unexported fields
}
func NewFileTemplateFactory ¶
func NewFileTemplateFactory(templateRoot string) *FileTemplateFactory
func (*FileTemplateFactory) CreateGenerator ¶
func (f *FileTemplateFactory) CreateGenerator(tmplPath string, funcMaps ...map[string]interface{}) Generator
type TemplGenerator ¶
type TemplGenerator struct {
// contains filtered or unexported fields
}
func NewGeneratorWithTmplFile ¶
func NewGeneratorWithTmplFile(tmplPath string, funcMaps ...map[string]interface{}) *TemplGenerator
func NewTemplateGenerator ¶
func NewTemplateGenerator(tmpl string, funcMaps ...map[string]interface{}) *TemplGenerator
Click to show internal directories.
Click to hide internal directories.