usecase

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserUsecase

func NewUserUsecase(repo repository.UserRepository, service *service.UserService) *userUsecase

Types

type User

type User struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
}

type UserUsecase

type UserUsecase interface {
	LoginUser(name, pwd string) (*User, error)
	RegisterUser(name, pwd string) (*User, error)
	GetUser(id int64) (*User, error)
	GetUserList(page, size int) ([]*User, error)
}

Jump to

Keyboard shortcuts

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