services

package
v0.0.0-...-9b663ca Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

type UserService struct {
	base.Service
}

UserService ..

func (UserService) CreateUser

func (s UserService) CreateUser(ctx context.Context, input model.NewUser) (*model.User, error)

CreateUser ..

func (UserService) GetUserByID

func (s UserService) GetUserByID(ctx context.Context, uid int64) (*models.User, error)

GetUserByID ..

func (UserService) GetUserInfo

func (s UserService) GetUserInfo(user *models.User, scheme string) *model.User

GetUserInfo ..

func (UserService) ListUser

func (s UserService) ListUser(ctx context.Context, searchParam *base.SearchParam, scheme string) (int64, []*model.User, error)

ListUser ..

func (UserService) ListUserByIDs

func (s UserService) ListUserByIDs(ids []int64, scheme string) ([]*model.User, error)

ListUserByIDs ..

func (UserService) Login

func (s UserService) Login(ctx context.Context, username string, password string) (*model.LoginResponse, error)

Login ..

func (UserService) RefreshToken

func (s UserService) RefreshToken(ctx context.Context, refreshToken string) (*model.LoginResponse, error)

RefreshToken ..

func (UserService) UpdatePassword

func (s UserService) UpdatePassword(ctx context.Context,
	oldPassword string, newPassword string, uid uint) (*model.User, error)

UpdatePassword ..

func (UserService) UpdateProfile

func (s UserService) UpdateProfile(ctx context.Context, input model.NewUpdateProfile, uid uint) (*model.User, error)

UpdateProfile ..

func (UserService) UpdateUser

func (s UserService) UpdateUser(ctx context.Context, input model.NewUpdateUser) (*model.User, error)

UpdateUser ..

Jump to

Keyboard shortcuts

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