Documentation ¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
- Constants
- func IgnoreRecordNotFound(err error) error
- type UserProfile
- func (m *UserProfile) Create(db *gorm.DB) error
- func (m *UserProfile) DeleteByPrimary(db *gorm.DB, primary int64) error
- func (m *UserProfile) FindByEmail(db *gorm.DB, key string) error
- func (m *UserProfile) FindByPrimary(db *gorm.DB, primary int64) error
- func (m *UserProfile) FindByUserId(db *gorm.DB, key string) error
- func (m *UserProfile) TableName() string
- func (m *UserProfile) UpdateByPrimary(db *gorm.DB, primary int64) error
- func (m *UserProfile) UpdateFieldsByPrimary(db *gorm.DB, primary int64, fields map[string]interface{}) error
- type UserProfileList
Constants ¶
View Source
const (
UserProfileTName = "user.user_profile"
)
Variables ¶
This section is empty.
Functions ¶
func IgnoreRecordNotFound ¶
Types ¶
type UserProfile ¶
type UserProfile struct { Id int64 `gorm:"column:id"` Nick string `gorm:"column:nick"` Pwd string `gorm:"column:pwd"` Email string `gorm:"column:email"` CreateTime time.Time `gorm:"column:create_time"` UpdateTime time.Time `gorm:"column:update_time"` UserId string `gorm:"column:user_id"` VipTime time.Time `gorm:"column:vip_time"` UserStatus int64 `gorm:"column:user_status"` // 0正常 1禁用 RegisterFrom int64 `gorm:"column:register_from"` }
func (*UserProfile) DeleteByPrimary ¶
func (m *UserProfile) DeleteByPrimary(db *gorm.DB, primary int64) error
func (*UserProfile) FindByEmail ¶
func (m *UserProfile) FindByEmail(db *gorm.DB, key string) error
func (*UserProfile) FindByPrimary ¶
func (m *UserProfile) FindByPrimary(db *gorm.DB, primary int64) error
func (*UserProfile) FindByUserId ¶
func (m *UserProfile) FindByUserId(db *gorm.DB, key string) error
func (*UserProfile) TableName ¶
func (m *UserProfile) TableName() string
func (*UserProfile) UpdateByPrimary ¶
func (m *UserProfile) UpdateByPrimary(db *gorm.DB, primary int64) error
func (*UserProfile) UpdateFieldsByPrimary ¶
type UserProfileList ¶
type UserProfileList []UserProfile
func (*UserProfileList) FindByPage ¶
func (*UserProfileList) FindByPrimarys ¶
func (l *UserProfileList) FindByPrimarys(db *gorm.DB, primarys []int64) (err error)
Click to show internal directories.
Click to hide internal directories.