service

package
v0.0.0-...-66c47ec Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserSrvOnce sync.Once

Functions

func BuildUser

func BuildUser(item *model.User) *pb.UserModel

Types

type UserSrv

type UserSrv struct{}
var UserSrvIns *UserSrv

func GetUserSrv

func GetUserSrv() *UserSrv

func (*UserSrv) Login

func (u *UserSrv) Login(ctx context.Context, req *pb.LoginReq, resp *pb.LoginResp) (err error)

func (*UserSrv) Signup

func (u *UserSrv) Signup(ctx context.Context, req *pb.SignUpReq, resp *pb.SignUpResp) (err error)

Jump to

Keyboard shortcuts

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