Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseModel ¶
type BaseModel struct {
CreatedTimeStr string `json:"createdTime" gorm:"-"`
CreatedTime *time.Time `json:"-" gorm:"column:created_time; type:datetime; not null; default:current_timestamp"`
UpdatedTime *time.Time `json:"-" gorm:"column:updated_time; type:datetime"`
DeletedTime *time.Time `json:"-" gorm:"column:deleted_time; type:datetime"`
IsDeleted int64 `json:"-" gorm:"column:is_deleted; type:tinyint(1); not null; default:0"`
}
func (*BaseModel) DeleteCache ¶
func (*BaseModel) DeleteCacheByPrefix ¶
type BmbCity ¶
type BmbCity struct {
ID int64 `json:"ID" gorm:"column:id; type:int(11); primary_key; auto_increment"`
Name string `json:"name" gorm:"column:name; type:varchar(50); not null; default:'北京'"`
Pid int64 `json:"pid" gorm:"column:pid; type:tinyint(4); not null; default:1"`
BaseModel
}