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
Click to show internal directories.
Click to hide internal directories.