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
}
func (*BmbCity) FindCityID ¶
func (*BmbCity) FindCityListByPid ¶
type User ¶
type User struct {
Login string `sql:"size:255;not null"`
Password string `sql:"size:255;not null"`
Email string `sql:"size:255"`
Avatar string `sql:"size:255"`
Github string `gorm:"column:github"`
QQ string `gorm:"column:qq"`
Weibo string `gorm:"column:weibo"`
Weixin string `gorm:"column:weixin"`
HomePage string `gorm:"column:home_page"`
Tagline string
Description string
Location string
BaseModel
}
Click to show internal directories.
Click to hide internal directories.