departments

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	DepartmentsService *Service
}

func (*Controller) In

func (x *Controller) In(r *route.RouterGroup)

type Service

type Service struct {
	Db *mongo.Database
}

func (*Service) FindOneById

func (x *Service) FindOneById(ctx context.Context, id primitive.ObjectID) (data model.Department, err error)

Jump to

Keyboard shortcuts

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