Documentation
¶
Index ¶
- Variables
- func NewRepoUser(data *base.Data) biz.IRepoUser
- type RepoUser
- func (repo *RepoUser) Create(ctx context.Context, bizUser *biz.User) error
- func (repo *RepoUser) Delete(ctx context.Context, bizUser *biz.User) error
- func (repo *RepoUser) GetByID(ctx context.Context, id int64) (*biz.User, error)
- func (repo *RepoUser) GetByUsername(ctx context.Context, username string) (*biz.User, error)
- func (repo *RepoUser) Update(ctx context.Context, id int64, updateFields map[string]interface{}) error
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewRepoUser)
Functions ¶
Types ¶
type RepoUser ¶
func (*RepoUser) GetByUsername ¶
type User ¶
type User struct { ID int64 `json:"id" gorm:"primaryKey"` Username string `json:"username" gorm:"type:varchar(64);uniqueIndex:CODE_DELETED"` Password string `json:"password" gorm:"type:varchar(128)"` Email string `json:"email" gorm:"type:varchar(128)"` PhoneNumber string `json:"phoneNumber" gorm:"type:varchar(128)"` ExtraInfo base.ExtraInfo `json:"extraInfo" gorm:"type:json"` base.Model }
Click to show internal directories.
Click to hide internal directories.