Versions in this module Expand all Collapse all v1 v1.0.2 Feb 21, 2023 v1.0.1 Dec 25, 2022 Changes in this version + func SetRoot(rt string) v1.0.0 Dec 13, 2022 Changes in this version + const F_ARRAY + const F_ART + const F_BOOL + const F_DATETIME + const F_FILE + const F_FILES + const F_FLOAT + const F_INT + const F_JSON + const F_M2M + const F_M2O + const F_O2M + const F_O2O + const F_TEXT + func CreateApiPageReg(creator *Creator) + func CreateAuth(creator *Creator) + func CreateConfig(c *Creator) + func CreateConfigPreload(creator *Creator) + func CreateController(c *Creator) + func CreateCrud(creator *Creator) + func CreateEmptyController(c *Creator) + func CreateEzModelConfig(creator *Creator) + func CreateMigrate(creator *Creator) + func CreateMod(creator *Creator) + func CreateModel(creator *Creator) + func CreateModelConfigFile(c *Creator) + func CreateOrmConfigFile(c *Creator) + func CreateVueAdminFile(creator *Creator) + func GenerateConfig(c *Creator) + func Init(c *Creator) + func SetTwig(tg *twig.Twig) + type Art struct + func (art *Art) CreateConfig() + func (this *Art) SetCnName(v string) *Art + func (this *Art) SetDefaultValue(v string) *Art + func (this *Art) SetEntityType(v string) *Art + func (this *Art) SetName(v string) *Art + func (this *Art) SetNullable(v bool) *Art + func (this *Art) SetOrm(v string) *Art + func (this *Art) SetSrc(v string) *Art + func (this *Art) SetType(v string) *Art + type BaseRelation struct + Fk string + OrmParam string + Ref string + SrcDir string + Table Table + type BaseType struct + CnName string + DefaultValue string + Desc string + EntityType string + Name string + Nullable bool + Orm string + Src string + Type string + func (this *BaseType) SetCnName(v string) *BaseType + func (this *BaseType) SetDefaultValue(v string) *BaseType + func (this *BaseType) SetDesc(v string) *BaseType + func (this *BaseType) SetEntityType(v string) *BaseType + func (this *BaseType) SetName(v string) *BaseType + func (this *BaseType) SetNullable(v bool) *BaseType + func (this *BaseType) SetOrm(v string) *BaseType + func (this *BaseType) SetSrc(v string) *BaseType + func (this *BaseType) SetType(v string) *BaseType + func (this BaseType) GetConfig() BaseType + func (this BaseType) GetEntityType() string + func (this BaseType) GetName() string + func (this BaseType) GetOrm() string + func (this BaseType) GetSrc() string + func (this BaseType) GetType() string + type Bool struct + func (f *Bool) CreateConfig() + func (this *Bool) SetCnName(v string) *Bool + func (this *Bool) SetDefaultValue(v string) *Bool + func (this *Bool) SetEntityType(v string) *Bool + func (this *Bool) SetName(v string) *Bool + func (this *Bool) SetNullable(v bool) *Bool + func (this *Bool) SetOrm(v string) *Bool + func (this *Bool) SetSrc(v string) *Bool + func (this *Bool) SetType(v string) *Bool + type Creator struct + AppName string + Fields []FieldItem + Model string + SafeDelete bool + Table *Table + func NewTable(name string, cnName string, path string) *Creator + func (c *Creator) AddArt(name string, label string) *Art + func (c *Creator) AddBool(name string, label string) *Bool + func (c *Creator) AddCode() *Text + func (c *Creator) AddContent() *Art + func (c *Creator) AddCreateAt() *DateTime + func (c *Creator) AddCreateBy() *Int + func (c *Creator) AddDateTime(name string, label string) *DateTime + func (c *Creator) AddDelete() *Bool + func (c *Creator) AddFile(name string, label string) *File + func (c *Creator) AddFiles(name string, label string) *Files + func (c *Creator) AddFloat(name string, label string) *Float + func (c *Creator) AddInt(name string, label string) *Int + func (c *Creator) AddJson(name string, label string) *Json + func (c *Creator) AddLock() *Bool + func (c *Creator) AddManyToMany(name string, label string, src string) *ManyToMany + func (c *Creator) AddManyToOne(name string, label string, src string) *ManyToOne + func (c *Creator) AddName() *Text + func (c *Creator) AddOneToMany(name string, label string, src string) *OneToMany + func (c *Creator) AddOneToOne(name string, label string, src string) *OneToOne + func (c *Creator) AddOwner() *Int + func (c *Creator) AddSort() *Int + func (c *Creator) AddState() *Int + func (c *Creator) AddText(name string, label string) *Text + func (c *Creator) AddTitle() *Text + func (c *Creator) AddUpdateAt() *DateTime + func (c *Creator) Generate() + func (c *Creator) GetTable() *Table + func (c *Creator) IsTree() *Table + func (c *Creator) LoadDependence() *Creator + func (c *Creator) LoadStatus() *Creator + func (c *Creator) LoadTree() *Creator + func (c *Creator) SetCnName(cnName string) *Table + func (c *Creator) SetName(name string) *Table + func (c *Creator) SetPath(path string) *Table + type DateTime struct + IsAutoNow bool + IsAutoNowAdd bool + OrmParam string + func (f *DateTime) CreateConfig() + func (this *DateTime) SetCnName(v string) *DateTime + func (this *DateTime) SetDefaultValue(v string) *DateTime + func (this *DateTime) SetEntityType(v string) *DateTime + func (this *DateTime) SetIsAutoNow(is bool) *DateTime + func (this *DateTime) SetIsAutoNowAdd(is bool) *DateTime + func (this *DateTime) SetName(v string) *DateTime + func (this *DateTime) SetNullable(v bool) *DateTime + func (this *DateTime) SetOrm(v string) *DateTime + func (this *DateTime) SetSrc(v string) *DateTime + func (this *DateTime) SetType(v string) *DateTime + type Field struct + CnName string + DataSrControl bool + DataSrc string + DefaultValue string + Length string + Name string + Nullable bool + OrmParam string + Type int + type FieldItem interface + CreateConfig func() + GetConfig func() BaseType + GetEntityType func() string + GetName func() string + GetOrm func() string + GetSrc func() string + GetType func() string + type File struct + func (json *File) CreateConfig() + func (this *File) SetCnName(v string) *File + func (this *File) SetDefaultValue(v string) *File + func (this *File) SetEntityType(v string) *File + func (this *File) SetName(v string) *File + func (this *File) SetNullable(v bool) *File + func (this *File) SetOrm(v string) *File + func (this *File) SetSrc(v string) *File + func (this *File) SetType(v string) *File + type Files struct + func (json *Files) CreateConfig() + func (this *Files) SetCnName(v string) *Files + func (this *Files) SetDefaultValue(v string) *Files + func (this *Files) SetEntityType(v string) *Files + func (this *Files) SetName(v string) *Files + func (this *Files) SetNullable(v bool) *Files + func (this *Files) SetOrm(v string) *Files + func (this *Files) SetSrc(v string) *Files + func (this *Files) SetType(v string) *Files + type Float struct + Base string + Decimals int + Digits int + OrmParam string + func (f *Float) CreateConfig() + func (f *Float) SetDecimals(dec int) *Float + func (f *Float) SetDigits(dig int) *Float + func (this *Float) SetBase(v string) *Float + func (this *Float) SetCnName(v string) *Float + func (this *Float) SetDefaultValue(v string) *Float + func (this *Float) SetEntityType(v string) *Float + func (this *Float) SetName(v string) *Float + func (this *Float) SetNullable(v bool) *Float + func (this *Float) SetOrm(v string) *Float + func (this *Float) SetSrc(v string) *Float + func (this *Float) SetType(v string) *Float + type Int struct + Base string + func (f *Int) CreateConfig() + func (this *Int) SetBase(v string) *Int + func (this *Int) SetCnName(v string) *Int + func (this *Int) SetDefaultValue(v string) *Int + func (this *Int) SetEntityType(v string) *Int + func (this *Int) SetName(v string) *Int + func (this *Int) SetNullable(v bool) *Int + func (this *Int) SetOrm(v string) *Int + func (this *Int) SetSrc(v string) *Int + func (this *Int) SetType(v string) *Int + type Json struct + func (json *Json) CreateConfig() + func (this *Json) SetCnName(v string) *Json + func (this *Json) SetDefaultValue(v string) *Json + func (this *Json) SetEntityType(v string) *Json + func (this *Json) SetName(v string) *Json + func (this *Json) SetNullable(v bool) *Json + func (this *Json) SetOrm(v string) *Json + func (this *Json) SetSrc(v string) *Json + func (this *Json) SetType(v string) *Json + type ManyToMany struct + IsControl bool + LinkTable string + func (f *ManyToMany) CreateConfig() + func (f *ManyToMany) SetIsControl(ctrl bool) *ManyToMany + func (this *ManyToMany) SetCnName(v string) *ManyToMany + func (this *ManyToMany) SetDefaultValue(v string) *ManyToMany + func (this *ManyToMany) SetEntityType(v string) *ManyToMany + func (this *ManyToMany) SetFk(v string) *ManyToMany + func (this *ManyToMany) SetLinkTable(v string) *ManyToMany + func (this *ManyToMany) SetName(v string) *ManyToMany + func (this *ManyToMany) SetNullable(v bool) *ManyToMany + func (this *ManyToMany) SetOrm(v string) *ManyToMany + func (this *ManyToMany) SetRef(v string) *ManyToMany + func (this *ManyToMany) SetSrc(v string) *ManyToMany + func (this *ManyToMany) SetSrcDir(v string) *ManyToMany + func (this *ManyToMany) SetType(v string) *ManyToMany + type ManyToOne struct + func (f *ManyToOne) CreateConfig() + func (this *ManyToOne) SetCnName(v string) *ManyToOne + func (this *ManyToOne) SetDefaultValue(v string) *ManyToOne + func (this *ManyToOne) SetEntityType(v string) *ManyToOne + func (this *ManyToOne) SetFk(v string) *ManyToOne + func (this *ManyToOne) SetName(v string) *ManyToOne + func (this *ManyToOne) SetNullable(v bool) *ManyToOne + func (this *ManyToOne) SetOrm(v string) *ManyToOne + func (this *ManyToOne) SetRef(v string) *ManyToOne + func (this *ManyToOne) SetSrc(v string) *ManyToOne + func (this *ManyToOne) SetSrcDir(v string) *ManyToOne + func (this *ManyToOne) SetType(v string) *ManyToOne + type OneToMany struct + func (f *OneToMany) CreateConfig() + func (this *OneToMany) SetCnName(v string) *OneToMany + func (this *OneToMany) SetDefaultValue(v string) *OneToMany + func (this *OneToMany) SetEntityType(v string) *OneToMany + func (this *OneToMany) SetFk(v string) *OneToMany + func (this *OneToMany) SetName(v string) *OneToMany + func (this *OneToMany) SetNullable(v bool) *OneToMany + func (this *OneToMany) SetOrm(v string) *OneToMany + func (this *OneToMany) SetSrc(v string) *OneToMany + func (this *OneToMany) SetSrcDir(v string) *OneToMany + func (this *OneToMany) SetType(v string) *OneToMany + type OneToOne struct + IsControl bool + func (f *OneToOne) CreateConfig() + func (f *OneToOne) SetIsControl(ctrl bool) *OneToOne + func (this *OneToOne) SetCnName(v string) *OneToOne + func (this *OneToOne) SetDefaultValue(v string) *OneToOne + func (this *OneToOne) SetEntityType(v string) *OneToOne + func (this *OneToOne) SetFk(v string) *OneToOne + func (this *OneToOne) SetName(v string) *OneToOne + func (this *OneToOne) SetNullable(v bool) *OneToOne + func (this *OneToOne) SetOrm(v string) *OneToOne + func (this *OneToOne) SetRef(v string) *OneToOne + func (this *OneToOne) SetSrc(v string) *OneToOne + func (this *OneToOne) SetSrcDir(v string) *OneToOne + func (this *OneToOne) SetType(v string) *OneToOne + type OrmField struct + Name string + Tags string + Type string + type Table struct + CnName string + Fields []FieldItem + Name string + Path string + type Text struct + Length string + func (text *Text) CreateConfig() + func (this *Text) SetCnName(v string) *Text + func (this *Text) SetDefaultValue(v string) *Text + func (this *Text) SetEntityType(v string) *Text + func (this *Text) SetLength(v int) *Text + func (this *Text) SetName(v string) *Text + func (this *Text) SetNullable(v bool) *Text + func (this *Text) SetOrm(v string) *Text + func (this *Text) SetSrc(v string) *Text + func (this *Text) SetType(v string) *Text