services

package
v0.0.0-...-b942761 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceSet = wire.NewSet(NewLogService)

Functions

This section is empty.

Types

type LogService

type LogService interface {
	List(q string, page int64, size int64, ordering string, data interface{}) (n int64, err error)

	Update(ctx context.Context, info map[string]interface{}) error
	Create(ctx context.Context, info map[string]interface{}) error
	Delete(ctx context.Context, ids []int64) (err error)
}

func NewLogService

func NewLogService(repo repositories.LogRepository) LogService

type LogServiceImp

type LogServiceImp struct {
	// contains filtered or unexported fields
}

func (*LogServiceImp) Create

func (s *LogServiceImp) Create(ctx context.Context, info map[string]interface{}) error

func (*LogServiceImp) Delete

func (s *LogServiceImp) Delete(ctx context.Context, ids []int64) (err error)

func (*LogServiceImp) List

func (s *LogServiceImp) List(q string, page int64, size int64, ordering string, data interface{}) (n int64, err error)

func (*LogServiceImp) Update

func (s *LogServiceImp) Update(ctx context.Context, info map[string]interface{}) error

Jump to

Keyboard shortcuts

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