strategy

package
v0.0.0-...-c47cd45 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectBuildStrategy

func InjectBuildStrategy(s *BuildStrategy)

func LoadBuildStrategy

func LoadBuildStrategy() baseiface.ISingleton

Types

type BuildStrategy

type BuildStrategy struct {
	basedto.BaseEntity
	*table.TableFactroy
	FileKey int
	// contains filtered or unexported fields
}

func FindBeanBuildStrategy

func FindBeanBuildStrategy() *BuildStrategy

func NewBuildStrategy

func NewBuildStrategy() *BuildStrategy

func (*BuildStrategy) AppenTableFile

func (b *BuildStrategy) AppenTableFile(tableFile *dto.TableFile)

func (*BuildStrategy) Build

func (b *BuildStrategy) Build() *dto.TableFile

func (*BuildStrategy) BuildFile

func (b *BuildStrategy) BuildFile()

func (*BuildStrategy) BuildFiles

func (b *BuildStrategy) BuildFiles(genpath string, suffix string, content string) *dto.TableFile

func (*BuildStrategy) BuildParams

func (b *BuildStrategy) BuildParams()

func (*BuildStrategy) BuildType

func (b *BuildStrategy) BuildType() int

func (*BuildStrategy) FindBuildFileInf

func (b *BuildStrategy) FindBuildFileInf() (*dto.BuildFileInf, bool)

func (*BuildStrategy) FindFileTemplate

func (b *BuildStrategy) FindFileTemplate() *dto.FileTemplate

func (*BuildStrategy) GetTableFactroy

func (b *BuildStrategy) GetTableFactroy() *table.TableFactroy

func (*BuildStrategy) Init

func (b *BuildStrategy) Init()

func (*BuildStrategy) Istest

func (b *BuildStrategy) Istest() bool

func (*BuildStrategy) Parse

func (b *BuildStrategy) Parse() string

func (*BuildStrategy) SetBuildType

func (b *BuildStrategy) SetBuildType(buildType int)

func (*BuildStrategy) SetTableFactroy

func (b *BuildStrategy) SetTableFactroy(tableFactroy *table.TableFactroy)

type IbuildStrategy

type IbuildStrategy interface {
	Istest() bool
	Build() *dto.TableFile

	Init()
	BuildParams()
	BuildFile()
	SetTableFactroy(tableFactroy *table.TableFactroy)
	GetTableFactroy() *table.TableFactroy
}

@Title 文件名称: builder_iface.go @Description 描述: 代码工厂生成接口

@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)

Jump to

Keyboard shortcuts

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