user_service

package
v0.0.0-...-bb1013f Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 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 LoginResponse

type LoginResponse struct {
	User   UserInfo `json:"user"`
	Tokens Tokens   `json:"tokens"`
}

type Tokens

type Tokens struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

type UserInfo

type UserInfo struct {
	ID    uint   `json:"ID"`
	Phone string `json:"phone"`
	Name  string `json:"name"`
}

type UserService

type UserService struct {
	UserStore userrepo.Repository
	AuthSvc   authservice.AuthService
}

func (*UserService) Login

func (*UserService) Register

func (u *UserService) Register(validatedEntity userentity.UserRegisterEntity) (model.User, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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