Documentation ¶
Overview ¶
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * This source code is licensed under the Apache License Version 2.0.
Index ¶
- type UserBaseRepo
- func (repo *UserBaseRepo) Close()
- func (repo *UserBaseRepo) Create(ctx context.Context, user model.UserBaseModel) (model.UserBaseModel, error)
- func (repo *UserBaseRepo) Creates(ctx context.Context, users []*model.UserBaseModel) error
- func (repo *UserBaseRepo) Delete(ctx context.Context, id uint64) error
- func (repo *UserBaseRepo) DeleteOutOfSyncLdapUser(ldapGen uint64) (int64, error)
- func (repo *UserBaseRepo) GetUserByEmail(ctx context.Context, phone string) (*model.UserBaseModel, error)
- func (repo *UserBaseRepo) GetUserByID(ctx context.Context, uid uint64) (userBase *model.UserBaseModel, err error)
- func (repo *UserBaseRepo) GetUserByPhone(ctx context.Context, phone int64) (*model.UserBaseModel, error)
- func (repo *UserBaseRepo) GetUserBySa(ctx context.Context, sa string) (*model.UserBaseModel, error)
- func (repo *UserBaseRepo) GetUserHasNotSa(ctx context.Context) ([]*model.UserBaseModel, error)
- func (repo *UserBaseRepo) GetUserList(ctx context.Context) ([]*model.UserList, error)
- func (repo *UserBaseRepo) GetUserPageable(ctx context.Context, page, limit int) ([]*model.UserBaseModel, error)
- func (repo *UserBaseRepo) ListStartById(ctx context.Context, idStart uint64, limit uint64) ([]*model.UserBaseModel, error)
- func (repo *UserBaseRepo) Update(ctx context.Context, id uint64, userMap *model.UserBaseModel) (*model.UserBaseModel, error)
- func (repo *UserBaseRepo) UpdateServiceAccountName(ctx context.Context, id uint64, saName string) error
- func (repo *UserBaseRepo) UpdateUsersLdapGen(list []*model.UserBaseModel, gen uint64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserBaseRepo ¶
type UserBaseRepo struct {
// contains filtered or unexported fields
}
UserBaseRepo
func (*UserBaseRepo) Create ¶
func (repo *UserBaseRepo) Create(ctx context.Context, user model.UserBaseModel) (model.UserBaseModel, error)
Create
func (*UserBaseRepo) Creates ¶
func (repo *UserBaseRepo) Creates(ctx context.Context, users []*model.UserBaseModel) error
Creates
func (*UserBaseRepo) Delete ¶
func (repo *UserBaseRepo) Delete(ctx context.Context, id uint64) error
Delete
func (*UserBaseRepo) DeleteOutOfSyncLdapUser ¶
func (repo *UserBaseRepo) DeleteOutOfSyncLdapUser(ldapGen uint64) (int64, error)
func (*UserBaseRepo) GetUserByEmail ¶
func (repo *UserBaseRepo) GetUserByEmail(ctx context.Context, phone string) (*model.UserBaseModel, error)
GetUserByEmail
func (*UserBaseRepo) GetUserByID ¶
func (repo *UserBaseRepo) GetUserByID(ctx context.Context, uid uint64) (userBase *model.UserBaseModel, err error)
GetUserByID
func (*UserBaseRepo) GetUserByPhone ¶
func (repo *UserBaseRepo) GetUserByPhone(ctx context.Context, phone int64) (*model.UserBaseModel, error)
GetUserByPhone
func (*UserBaseRepo) GetUserBySa ¶
func (repo *UserBaseRepo) GetUserBySa(ctx context.Context, sa string) (*model.UserBaseModel, error)
GetUserBySa
func (*UserBaseRepo) GetUserHasNotSa ¶
func (repo *UserBaseRepo) GetUserHasNotSa(ctx context.Context) ([]*model.UserBaseModel, error)
func (*UserBaseRepo) GetUserList ¶
deprecated
func (*UserBaseRepo) GetUserPageable ¶
func (repo *UserBaseRepo) GetUserPageable(ctx context.Context, page, limit int) ([]*model.UserBaseModel, error)
func (*UserBaseRepo) ListStartById ¶
func (repo *UserBaseRepo) ListStartById(ctx context.Context, idStart uint64, limit uint64) ([]*model.UserBaseModel, error)
func (*UserBaseRepo) Update ¶
func (repo *UserBaseRepo) Update(ctx context.Context, id uint64, userMap *model.UserBaseModel) ( *model.UserBaseModel, error, )
Update
func (*UserBaseRepo) UpdateServiceAccountName ¶
func (repo *UserBaseRepo) UpdateServiceAccountName(ctx context.Context, id uint64, saName string) error
Update
func (*UserBaseRepo) UpdateUsersLdapGen ¶
func (repo *UserBaseRepo) UpdateUsersLdapGen(list []*model.UserBaseModel, gen uint64) bool
Click to show internal directories.
Click to hide internal directories.