service

package
v0.0.0-...-b12402e Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT, MIT Imports: 5 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewUserService)

ProviderSet is service providers.

Functions

This section is empty.

Types

type UserService

type UserService struct {
	v1.UnimplementedUserServer
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(uc *biz.UserUseCase, cc *biz.CardUseCase, ac *biz.AddressUseCase, logger log.Logger) *UserService

func (*UserService) CreateAddress

func (s *UserService) CreateAddress(ctx context.Context, req *v1.CreateAddressReq) (*v1.CreateAddressReply, error)

func (*UserService) CreateCard

func (s *UserService) CreateCard(ctx context.Context, req *v1.CreateCardReq) (*v1.CreateCardReply, error)

func (*UserService) CreateUser

func (s *UserService) CreateUser(ctx context.Context, req *v1.CreateUserReq) (*v1.CreateUserReply, error)

func (*UserService) GetAddress

func (s *UserService) GetAddress(ctx context.Context, req *v1.GetAddressReq) (*v1.GetAddressReply, error)

func (*UserService) GetCard

func (s *UserService) GetCard(ctx context.Context, req *v1.GetCardReq) (*v1.GetCardReply, error)

func (*UserService) GetUser

func (s *UserService) GetUser(ctx context.Context, req *v1.GetUserReq) (*v1.GetUserReply, error)

func (*UserService) GetUserByUsername

func (s *UserService) GetUserByUsername(ctx context.Context, in *v1.GetUserByUsernameReq) (*v1.GetUserByUsernameReply, error)

func (*UserService) ListAddress

func (s *UserService) ListAddress(ctx context.Context, req *v1.ListAddressReq) (*v1.ListAddressReply, error)

func (*UserService) ListCard

func (s *UserService) ListCard(ctx context.Context, req *v1.ListCardReq) (*v1.ListCardReply, error)

func (*UserService) Save

func (*UserService) VerifyPassword

func (s *UserService) VerifyPassword(ctx context.Context, req *v1.VerifyPasswordReq) (*v1.VerifyPasswordReply, error)

Jump to

Keyboard shortcuts

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