v1

package
v0.0.0-...-6d5e59d Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	User() UserSrv
}

func NewService

func NewService(s store.Factory, c cache.Cache) Service

type UserSrv

type UserSrv interface {
	Register(ctx context.Context, req *model.RegisterRequest) (*model.RegisterResponse, error)
	Get(ctx context.Context, userID uint64) (*model.UserGetResponse, error)
	GetCode(ctx context.Context, toEmail string) (*model.GetCodeResponse, error)
	Login(ctx context.Context, req *model.LoginRequest) (*model.LoginResponse, error)
	List(ctx context.Context) (*model.UserListResponse, error)
	ChangePassword(ctx context.Context, req *model.ChangePasswordRequest) error
	ChangeEmail(ctx context.Context, req *model.ChangeEmailRequest) error
	Logout(ctx context.Context) error
	Update(ctx context.Context, request *model.UserUpdateRequest) error
	UploadAvatar(ctx context.Context, avatar string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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