service

package
v0.0.0-...-b1be0e3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	UserCreate(ctx context.Context, user *form.UserForm) (*model.UserModel, int, error)
	UserFind(ctx context.Context) ([]*model.UserModel, int, error)
	UserFindByID(ctx context.Context, id string) (*model.UserModel, int, error)
	UserUpdate(ctx context.Context, user *form.UserForm, id string) (*model.UserModel, int, error)
	UserDelete(ctx context.Context, id string) (int, error)
}

Service represent the services

func NewService

func NewService(l *logrus.Entry, mr mongo.Repository) Service

NewService will create an object that represent the Service interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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