Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewUserRepo)
ProviderSet is data providers.
Functions ¶
func RecordNotFound ¶
RecordNotFound First、Last、Take 这些预期会返回结果的方法查询记录时,才会返回 ErrRecordNotFound
Types ¶
type User ¶
type User struct {
Id int64 `gorm:"column:id;primaryKey;type:bigint;index;comment:数据id"`
UserName string `gorm:"column:username;type:varchar(32);uniqueIndex;comment:用户名"`
Password string `gorm:"column:password;type:varchar(32);comment:密码,纯md5,未加盐"`
Email string `gorm:"column:email;type:varchar(64);index;comment:密码,纯md5,未加盐"`
Avatar string `gorm:"column:avatar;type:text;comment:头像地址"`
Status biz.UserStatus `gorm:"column:status;type:tinyint;default:1"`
CreateTime int32 `gorm:"column:create_time;type:int;not null"`
DeleteTime int32 `gorm:"column:delete_time;type:int;default:0;comment:删除时间"`
}
Click to show internal directories.
Click to hide internal directories.