Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(dal.Init, NewUserRepo)
ProviderSet is repo providers.
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
type UserRepo interface { CreateUser(ctx context.Context, data model.UserInfoModel) (id int64, err error) UpdateUser(ctx context.Context, id int64, data model.UserInfoModel) error GetUser(ctx context.Context, id int64) (ret *model.UserInfoModel, err error) BatchGetUsers(ctx context.Context, ids []int64) (ret []*model.UserInfoModel, err error) GetUserByUsername(ctx context.Context, username string) (ret *model.UserInfoModel, err error) GetUserByEmail(ctx context.Context, email string) (ret *model.UserInfoModel, err error) GetUserByPhone(ctx context.Context, phone string) (ret *model.UserInfoModel, err error) }
UserRepo define a repo interface
Click to show internal directories.
Click to hide internal directories.