service

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(ctx context.Context, repository *entify.Repository) *Service

func NewSystem

func NewSystem(repository *entify.Repository) *Service

func (*Service) BatchQueryAssociations

func (s *Service) BatchQueryAssociations(
	association *graph.Association,
	ids []uint64,
	args graph.QueryArg,
) []map[string]interface{}

func (*Service) DeleteInstance

func (s *Service) DeleteInstance(entityName string, id shared.ID) (interface{}, error)

func (*Service) DeleteInstances

func (s *Service) DeleteInstances(entityName string, ids []shared.ID) (interface{}, error)

func (*Service) QueryById

func (s *Service) QueryById(entityName string, id uint64) interface{}

func (*Service) QueryEntity

func (s *Service) QueryEntity(entityName string, args graph.QueryArg, fieldNames []string) orm.QueryResponse

func (*Service) QueryOneEntity

func (s *Service) QueryOneEntity(entityName string, args graph.QueryArg) interface{}

func (*Service) Save

func (s *Service) Save(entityName string, objects []map[string]interface{}) ([]orm.InsanceData, error)

func (*Service) SaveOne

func (s *Service) SaveOne(entityName string, object map[string]interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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