svc

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 11 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(logger *zap.Logger, db *database.DBO) *Service

func (*Service) EventList

func (svc *Service) EventList(ctx context.Context, req *bean.EventListRo) ([]map[string]interface{}, error)

func (*Service) TaskAdd

func (svc *Service) TaskAdd(ctx context.Context, req *bean.TaskAddRo) (int64, error)

func (*Service) TaskDelete

func (svc *Service) TaskDelete(ctx context.Context, req *bean.TaskDeleteRo) error

func (*Service) TaskList

func (svc *Service) TaskList(ctx context.Context, req *bean.TaskListRo) ([]model.Task, error)

func (*Service) TaskPause

func (svc *Service) TaskPause(ctx context.Context, req *bean.TaskPauseRo) error

func (*Service) TaskUpdate

func (svc *Service) TaskUpdate(ctx context.Context, req *bean.TaskUpdateRo) error

Jump to

Keyboard shortcuts

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