user

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 6 Imported by: 0

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

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 NewUserRepo

func NewUserRepo(db *gorm.DB) *UserBaseRepo

NewUserRepo

func (*UserBaseRepo) Close

func (repo *UserBaseRepo) Close()

Close close db

func (*UserBaseRepo) Create

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

func (repo *UserBaseRepo) GetUserList(ctx context.Context) ([]*model.UserList, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL