service

package
v0.0.0-...-10283fc Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 23 Imported by: 0

README

Service

业务逻辑层

Reference

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type UserServiceServer

type UserServiceServer struct {
	pb.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func NewUserServiceServer

func NewUserServiceServer(repo repository.UserRepo) *UserServiceServer

func (*UserServiceServer) BatchGetUsers

func (*UserServiceServer) CreateUser

func (*UserServiceServer) GetUser

func (*UserServiceServer) Login

func (*UserServiceServer) Logout

func (*UserServiceServer) Register

func (*UserServiceServer) UpdatePassword

func (*UserServiceServer) UpdateUser

type VerifyCodeService

type VerifyCodeService interface {
	GenVerifyCode(ctx context.Context, phone string) (int, error)
	CheckVerifyCode(ctx context.Context, phone string, vCode string) bool
	GetVerifyCode(ctx context.Context, phone string) (vCode string, err error)
}

VerifyCodeService define a interface

Jump to

Keyboard shortcuts

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