Documentation ¶
Index ¶
- Constants
- func InjectJoinQueryFactroy(s *JoinQueryFactroy)
- func InjectJoinServiceFactroy(s *JoinServiceFactroy)
- func LoadJoinQueryFactroy() baseiface.ISingleton
- func LoadJoinServiceFactroy() baseiface.ISingleton
- type JoinFactroy
- type JoinQueryFactroy
- func (joinQuery *JoinQueryFactroy) AppendDfc(dir, f, c string)
- func (joinQuery *JoinQueryFactroy) Build(tableFactroy *table.TableFactroy) (dir, f, c string)
- func (joinQuery *JoinQueryFactroy) BuildIf(columns *[]meta.MetaColumn) (lst *list.List)
- func (joinQuery *JoinQueryFactroy) BuildServiceFile(dbfactroy *table.TableFactroy) (dir, f, c string)
- func (joinQuery *JoinQueryFactroy) BuildTestServiceFile(dbfactroy *table.TableFactroy) (dir, f, c string)
- func (joinQuery *JoinQueryFactroy) CheckKeys(tableFactroy *table.TableFactroy)
- func (joinQuery *JoinQueryFactroy) CheckTables() *JoinQueryFactroy
- func (joinQuery *JoinQueryFactroy) FilterCs(dbFactroy *table.TableFactroy) (cs *[]meta.MetaColumn)
- func (joinQuery *JoinQueryFactroy) FindPgPkey(dbfactroy *table.TableFactroy)
- func (joinQuery *JoinQueryFactroy) Ini(tableFactroy *table.TableFactroy, tables string) *JoinQueryFactroy
- func (joinQuery *JoinQueryFactroy) LogDfc() *JoinQueryFactroy
- func (joinQuery *JoinQueryFactroy) MakeModelProtoBody(columns *[]meta.MetaColumn) *list.List
- func (joinQuery *JoinQueryFactroy) MapJson2Field(columns *[]meta.MetaColumn) (lst *list.List)
- func (joinQuery *JoinQueryFactroy) SelectFields(selectFields string) *JoinQueryFactroy
- func (joinQuery *JoinQueryFactroy) SendEmail() *JoinQueryFactroy
- func (joinQuery *JoinQueryFactroy) String() string
- func (joinQuery *JoinQueryFactroy) ToString() string
- type JoinServiceFactroy
- func (joinQuery *JoinServiceFactroy) AppendDfc(dir, f, c string)
- func (joinQuery *JoinServiceFactroy) Build(tableFactroy *table.TableFactroy) *dto.TableFile
- func (joinQuery *JoinServiceFactroy) BuildCode() string
- func (joinQuery *JoinServiceFactroy) BuildIf(columns *[]meta.MetaColumn) (lst *list.List)
- func (joinQuery *JoinServiceFactroy) CheckKeys(tableFactroy *table.TableFactroy)
- func (joinQuery *JoinServiceFactroy) CheckTables() *JoinServiceFactroy
- func (joinQuery *JoinServiceFactroy) FilterCs(dbFactroy *table.TableFactroy) (cs *[]meta.MetaColumn)
- func (joinQuery *JoinServiceFactroy) FindPgPkey(dbfactroy *table.TableFactroy)
- func (joinQuery *JoinServiceFactroy) Ini(tableFactroy *table.TableFactroy, tables string) *JoinServiceFactroy
- func (joinQuery *JoinServiceFactroy) LogDfc() *JoinServiceFactroy
- func (joinQuery *JoinServiceFactroy) MakeModelProtoBody(columns *[]meta.MetaColumn) *list.List
- func (joinQuery *JoinServiceFactroy) MapJson2Field(columns *[]meta.MetaColumn) (lst *list.List)
- func (joinQuery *JoinServiceFactroy) SelectFields(selectFields string) *JoinServiceFactroy
- func (joinQuery *JoinServiceFactroy) SendEmail() *JoinServiceFactroy
- func (joinQuery *JoinServiceFactroy) String() string
- func (joinQuery *JoinServiceFactroy) ToString() string
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) 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
Click to show internal directories.
Click to hide internal directories.