service

package
v0.0.0-...-9af728f Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupService

type GroupService struct {
	DB *gorm.DB
}

func (*GroupService) Categories

func (g *GroupService) Categories(ctx context.Context, id uint) ([]database.CategoryOut, error)

func (*GroupService) Create

func (g *GroupService) Create(ctx context.Context, data database.GroupIn) (string, error)

func (*GroupService) Delete

func (g *GroupService) Delete(ctx context.Context, id uint) (string, error)

func (*GroupService) GetAll

func (*GroupService) GetByID

func (g *GroupService) GetByID(ctx context.Context, id uint) (database.GroupOut, error)

func (*GroupService) Update

func (g *GroupService) Update(ctx context.Context, id uint, data database.GroupIn) (string, error)

type Service

type Service interface {
	GetAll(ctx context.Context) ([]database.GroupOutWithCategories, error)
	Create(ctx context.Context, data database.GroupIn) (string, error)
	Update(ctx context.Context, id uint, data database.GroupIn) (string, error)
	Delete(ctx context.Context, id uint) (string, error)
	Categories(ctx context.Context, id uint) ([]database.CategoryOut, error)
	GetByID(ctx context.Context, id uint) (database.GroupOut, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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