Versions in this module Expand all Collapse all v1 v1.0.1 Apr 9, 2025 v1.0.0 Feb 26, 2025 Changes in this version + func NewUserRepo(db *gorm.DB) repo.UserRepo + type User struct + AutoBuy int8 + AvatarUri string + CreateTime time.Time + Id uint32 + IsAutoBuy int8 + NickName string + ReadingPreference int8 + Uid int64 + UpdateTime time.Time + func (m *User) TableName() string + type UserAdapter struct + func (m *UserAdapter) Count(ctx context.Context, query *gormx.Query) (int64, error) + func (m *UserAdapter) Create(ctx context.Context, es ...*entity.User) error + func (m *UserAdapter) DB(ctx context.Context) *gorm.DB + func (m *UserAdapter) Delete(ctx context.Context, id int64) error + func (m *UserAdapter) IsDuplicatedKeyError(err error) bool + func (m *UserAdapter) IsNotFoundError(err error) bool + func (m *UserAdapter) List(ctx context.Context, query *gormx.Query) ([]*entity.User, error) + func (m *UserAdapter) Update(ctx context.Context, e *entity.User) error + func (r *UserAdapter) GetByID(ctx context.Context, id int64) (*entity.User, error)