service

package
v0.0.0-...-c1a7e98 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserCenterService

type UserCenterService struct {
	Auth *auth.Authz
	v1.UnimplementedUserCenterServer
	// contains filtered or unexported fields
}

func NewUserCenterService

func NewUserCenterService(biz biz.IBiz, a *auth.Authz) *UserCenterService

func (*UserCenterService) Authorize

Authorize checks authorization for a given request and returns an authorization response.

func (*UserCenterService) ChangePassword

func (s *UserCenterService) ChangePassword(ctx context.Context, username string, rq *v1.ChangePasswordRequest) error

ChangePassword changes the password for a user by calling the corresponding method in the business logic layer.

func (*UserCenterService) Create

Create creates a new user and returns a created user response.

func (*UserCenterService) Delete

Delete deletes a user and returns an empty response.

func (*UserCenterService) Get

Get retrieves a user's information and returns a get user response.

func (*UserCenterService) List

List lists users and returns a list user response.

func (*UserCenterService) Login

Login authenticates a user and returns a login response.

func (*UserCenterService) Update

Update updates a user's information and returns an empty response.

Jump to

Keyboard shortcuts

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