Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Example ¶
type Example struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"not null,type:text"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` }
func (*Example) Columns ¶
func (*Example) Columns() *ExampleColumns
type ExampleColumns ¶
type ExampleColumns struct { // Embedding operation functions make it easy to use // 继承操作函数便于使用 gormcnm.ColumnOperationClass // The column names and types of the model's columns // 模型各列的列名和类型 ID gormcnm.ColumnName[int32] Name gormcnm.ColumnName[string] CreatedAt gormcnm.ColumnName[time.Time] UpdatedAt gormcnm.ColumnName[time.Time] }
type Person ¶
type Person struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"not null,type:text"` BirthDate string Gender bool CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` }
func (*Person) Columns ¶
func (*Person) Columns() *PersonColumns
type PersonColumns ¶
type PersonColumns struct { // Embedding operation functions make it easy to use // 继承操作函数便于使用 gormcnm.ColumnOperationClass // The column names and types of the model's columns // 模型各列的列名和类型 ID gormcnm.ColumnName[int32] Name gormcnm.ColumnName[string] BirthDate gormcnm.ColumnName[string] Gender gormcnm.ColumnName[bool] CreatedAt gormcnm.ColumnName[time.Time] UpdatedAt gormcnm.ColumnName[time.Time] }
Click to show internal directories.
Click to hide internal directories.