buildjoin

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: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_JOIN_DTO       = 10000 + iota //= "join-dto"
	KEY_JOIN_DAO                      //  = "join-dao"
	KEY_JOIN_SERVICE                  // = "join-service"
	KEY_JOIN_RPC                      // = "join-rpcfile"
	KEY_JOIN_RPC_PROTO                //= "join-rpcfile-proto"
	KEY_JOIN_RPC_WEB                  //= "join-rpcfile-web"
)

Variables

This section is empty.

Functions

func InjectJoinQueryFactroy

func InjectJoinQueryFactroy(s *JoinQueryFactroy)

func InjectJoinServiceFactroy

func InjectJoinServiceFactroy(s *JoinServiceFactroy)

func LoadJoinQueryFactroy

func LoadJoinQueryFactroy() baseiface.ISingleton

func LoadJoinServiceFactroy

func LoadJoinServiceFactroy() baseiface.ISingleton

Types

type JoinFactroy

type JoinFactroy struct {
	strategy.BuildStrategy
}

func (*JoinFactroy) ReadTemplateMqDAO

func (this *JoinFactroy) ReadTemplateMqDAO() string

func (*JoinFactroy) ReadTemplateMqDTO

func (this *JoinFactroy) ReadTemplateMqDTO() string

func (*JoinFactroy) ReadTemplateMqService

func (this *JoinFactroy) ReadTemplateMqService() string

type JoinQueryFactroy

type JoinQueryFactroy struct {
	basedto.BaseEntitySingle
	JoinFactroy //.BuildStrategy

	//all table
	TableNames []string //第一个为关联主表
	//单表信息
	TableName, TableAlias, Pkey, PkeyType string

	Selects string
	//关联主表
	Joins    []string
	GoFields string //go basedto GoFields

	Keys  map[string]string
	Alias map[string]string `json:"-"`

	Mapcs map[string]*[]meta.MetaColumn `json:"-"`

	TableFactroy *table.TableFactroy `json:"-"`
	// contains filtered or unexported fields
}

func FindBeanJoinQueryFactroy

func FindBeanJoinQueryFactroy() *JoinQueryFactroy

func NewJoinQueryFactroy

func NewJoinQueryFactroy() *JoinQueryFactroy

func (*JoinQueryFactroy) AppendDfc

func (joinQuery *JoinQueryFactroy) AppendDfc(dir, f, c string)

func (*JoinQueryFactroy) Build

func (joinQuery *JoinQueryFactroy) Build(tableFactroy *table.TableFactroy) (dir, f, c string)

func (*JoinQueryFactroy) BuildIf

func (joinQuery *JoinQueryFactroy) BuildIf(columns *[]meta.MetaColumn) (lst *list.List)

func (*JoinQueryFactroy) BuildServiceFile

func (joinQuery *JoinQueryFactroy) BuildServiceFile(dbfactroy *table.TableFactroy) (dir, f, c string)

func (*JoinQueryFactroy) BuildTestServiceFile

func (joinQuery *JoinQueryFactroy) BuildTestServiceFile(dbfactroy *table.TableFactroy) (dir, f, c string)

func (*JoinQueryFactroy) CheckKeys

func (joinQuery *JoinQueryFactroy) CheckKeys(tableFactroy *table.TableFactroy)

func (*JoinQueryFactroy) CheckTables

func (joinQuery *JoinQueryFactroy) CheckTables() *JoinQueryFactroy

func (*JoinQueryFactroy) FilterCs

func (joinQuery *JoinQueryFactroy) FilterCs(dbFactroy *table.TableFactroy) (cs *[]meta.MetaColumn)

selectS employee.id,employee.name

func (*JoinQueryFactroy) FindPgPkey

func (joinQuery *JoinQueryFactroy) FindPgPkey(dbfactroy *table.TableFactroy)

func (*JoinQueryFactroy) Ini

func (joinQuery *JoinQueryFactroy) Ini(tableFactroy *table.TableFactroy, tables string) *JoinQueryFactroy

tables "a,b" employee.id,employee.name

func (*JoinQueryFactroy) LogDfc

func (joinQuery *JoinQueryFactroy) LogDfc() *JoinQueryFactroy

func (*JoinQueryFactroy) MakeModelProtoBody

func (joinQuery *JoinQueryFactroy) MakeModelProtoBody(columns *[]meta.MetaColumn) *list.List

func (*JoinQueryFactroy) MapJson2Field

func (joinQuery *JoinQueryFactroy) MapJson2Field(columns *[]meta.MetaColumn) (lst *list.List)

func (*JoinQueryFactroy) SelectFields

func (joinQuery *JoinQueryFactroy) SelectFields(selectFields string) *JoinQueryFactroy

func (*JoinQueryFactroy) SendEmail

func (joinQuery *JoinQueryFactroy) SendEmail() *JoinQueryFactroy

func (*JoinQueryFactroy) String

func (joinQuery *JoinQueryFactroy) String() string

指定生成结果转json字符串

func (*JoinQueryFactroy) ToString

func (joinQuery *JoinQueryFactroy) ToString() string

type JoinServiceFactroy

type JoinServiceFactroy struct {
	basedto.BaseEntitySingle
	JoinFactroy

	//all table
	TableNames []string //第一个为关联主表
	//单表信息
	TableName, TableAlias, Pkey, PkeyType string

	Selects string
	//关联主表
	Joins    []string
	GoFields string //go basedto GoFields

	Keys  map[string]string
	Alias map[string]string `json:"-"`

	Mapcs map[string]*[]meta.MetaColumn `json:"-"`

	TableFactroy *table.TableFactroy `json:"-"`
	// contains filtered or unexported fields
}

func FindBeanJoinServiceFactroy

func FindBeanJoinServiceFactroy() *JoinServiceFactroy

func NewJoinServiceFactroy

func NewJoinServiceFactroy() *JoinServiceFactroy

func (*JoinServiceFactroy) AppendDfc

func (joinQuery *JoinServiceFactroy) AppendDfc(dir, f, c string)

func (*JoinServiceFactroy) Build

func (joinQuery *JoinServiceFactroy) Build(tableFactroy *table.TableFactroy) *dto.TableFile

func (*JoinServiceFactroy) BuildCode

func (joinQuery *JoinServiceFactroy) BuildCode() string

func (*JoinServiceFactroy) BuildIf

func (joinQuery *JoinServiceFactroy) BuildIf(columns *[]meta.MetaColumn) (lst *list.List)

func (*JoinServiceFactroy) CheckKeys

func (joinQuery *JoinServiceFactroy) CheckKeys(tableFactroy *table.TableFactroy)

func (*JoinServiceFactroy) CheckTables

func (joinQuery *JoinServiceFactroy) CheckTables() *JoinServiceFactroy

func (*JoinServiceFactroy) FilterCs

func (joinQuery *JoinServiceFactroy) FilterCs(dbFactroy *table.TableFactroy) (cs *[]meta.MetaColumn)

selectS employee.id,employee.name

func (*JoinServiceFactroy) FindPgPkey

func (joinQuery *JoinServiceFactroy) FindPgPkey(dbfactroy *table.TableFactroy)

func (*JoinServiceFactroy) Ini

func (joinQuery *JoinServiceFactroy) Ini(tableFactroy *table.TableFactroy, tables string) *JoinServiceFactroy

tables "a,b" employee.id,employee.name

func (*JoinServiceFactroy) LogDfc

func (joinQuery *JoinServiceFactroy) LogDfc() *JoinServiceFactroy

func (*JoinServiceFactroy) MakeModelProtoBody

func (joinQuery *JoinServiceFactroy) MakeModelProtoBody(columns *[]meta.MetaColumn) *list.List

func (*JoinServiceFactroy) MapJson2Field

func (joinQuery *JoinServiceFactroy) MapJson2Field(columns *[]meta.MetaColumn) (lst *list.List)

func (*JoinServiceFactroy) SelectFields

func (joinQuery *JoinServiceFactroy) SelectFields(selectFields string) *JoinServiceFactroy

func (*JoinServiceFactroy) SendEmail

func (joinQuery *JoinServiceFactroy) SendEmail() *JoinServiceFactroy

func (*JoinServiceFactroy) String

func (joinQuery *JoinServiceFactroy) String() string

指定生成结果转json字符串

func (*JoinServiceFactroy) ToString

func (joinQuery *JoinServiceFactroy) ToString() string

Jump to

Keyboard shortcuts

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