group

package
v0.0.0-...-bf9679a Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroupServiceImpl

func NewGroupServiceImpl(
	groupRepository group.GroupRepository,
	villageRepository village.VillageRepository,
	idGenerator generator.IDGenerator,
	qrCodeGenerator generator.QRCodeGenerator,
) *groupServiceImpl

Types

type GroupService

type GroupService interface {
	Create(ctx context.Context, p payload.CreateGroup) (id string, err error)
	GetAll(ctx context.Context) (responses []response.Group, err error)
	GetByID(ctx context.Context, id string) (response response.Group, err error)
	Update(ctx context.Context, id string, p payload.UpdateGroup) (err error)
	Delete(ctx context.Context, id string) (err error)
	GenerateQRCode(ctx context.Context, id string) (file []byte, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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