Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct { ID int64 `gorm:"not null;primaryKey;autoIncrement;column:id"` CreatedAt int `gorm:"type:int(11);autoCreateTime;unsigned;not null;column:create_time"` UpdatedAt int `gorm:"type:int(11);autoUpdateTime;unsigned;not null;column:update_time"` }
don't use soft delete
type WrapDb ¶
wrap for *gorm.DB
func (*WrapDb) CommitTransaction ¶
Only for transactional dao calls
func (*WrapDb) NewTransaction ¶
transaction begin,must call rollback or commitTransaction after call this
func (*WrapDb) RollbackTransaction ¶
Only for transactional dao calls
Click to show internal directories.
Click to hide internal directories.