Versions in this module Expand all Collapse all v0 v0.1.38 Dec 9, 2022 v0.1.37 Nov 18, 2022 v0.1.36 Nov 8, 2022 v0.1.35 Nov 8, 2022 v0.1.34 Oct 31, 2022 v0.1.33 Oct 31, 2022 v0.1.32 Oct 31, 2022 v0.1.31 Oct 27, 2022 v0.1.30 Oct 26, 2022 v0.1.29 Oct 26, 2022 v0.1.28 Oct 26, 2022 v0.1.27 Oct 26, 2022 v0.1.26 Oct 26, 2022 v0.1.25 Oct 26, 2022 v0.1.24 Oct 26, 2022 Changes in this version + const DefaultModelPkg + func GetStructNames(bases []*BaseStruct) (res []string) + func ParseStructRelationShip(relationship *schema.Relationships) []field.Relation + type BaseStruct struct + GenBaseStruct bool + Members []*model.Member + NewStructName string + S string + Source model.SourceCode + StructInfo parser.Param + StructName string + TableName string + func CheckStructs(db *gorm.DB, structs ...interface{}) (bases []*BaseStruct, err error) + func GenBaseStructs(db *gorm.DB, conf model.DBConf) (bases *BaseStruct, err error) + func (b *BaseStruct) HasMember() bool + func (b *BaseStruct) Relations() []field.Relation + func (b *BaseStruct) ReviseMemberName() + type Clause interface + String func() string + type ElseClause struct + Cond string + Value []Clause + func (e ElseClause) String() (res string) + type ITableInfo interface + GetTbColumns func(schemaName string, tableName string) (result []*model.Column, err error) + GetTbIndex func(schemaName string, tableName string) (result []*model.Index, err error) + type IfClause struct + Cond string + Else []Clause + Value []Clause + func (i IfClause) String() string + type InterfaceMethod struct + Doc string + GormOption string + InterfaceName string + MethodName string + OriginStruct parser.Param + Package string + Params []parser.Param + Result []parser.Param + ResultData parser.Param + S string + SqlData []string + SqlString string + SqlTmplList []string + Table string + TargetStruct string + func CheckInterface(f *parser.InterfaceSet, s *BaseStruct, data []*InterfaceMethod) (checkResults []*InterfaceMethod, err error) + func (m *InterfaceMethod) DocComment() string + func (m *InterfaceMethod) GetParamInTmpl() string + func (m *InterfaceMethod) GetResultParamInTmpl() string + func (m *InterfaceMethod) GormRunMethodName() string + func (m *InterfaceMethod) HasGotPoint() bool + func (m *InterfaceMethod) HasNeedNewResult() bool + func (m *InterfaceMethod) HasSqlData() bool + func (m *InterfaceMethod) IsRepeatFromDifferentInterface(newMethod *InterfaceMethod) bool + func (m *InterfaceMethod) IsRepeatFromSameInterface(newMethod *InterfaceMethod) bool + func (m *InterfaceMethod) ReturnError() bool + func (m *InterfaceMethod) ReturnRowsAffected() bool + type SQLClause struct + Value []string + func (s SQLClause) String() string + type SetClause struct + Value []Clause + func (w SetClause) String() string + type Slices struct + Names map[model.Status]int + func NewSlices() *Slices + func (s *Slices) CreateIf(name string) + func (s *Slices) CreateStringSet(name string) + func (s *Slices) Current() slice + func (s *Slices) GetName(status model.Status) string + func (s *Slices) HasMore() bool + func (s *Slices) IsNull() bool + func (s *Slices) Len() int + func (s *Slices) Next() slice + func (s *Slices) SubIndex() + type WhereClause struct + Value []Clause + func (w WhereClause) String() string