activity

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IBiz

type IBiz interface {
	// GetByID serve caller to given id to get an activity information
	GetByID(ctx contextx.Contextx, id int64) (info *event.Activity, err error)

	// List serve caller to list all activities by page and size
	List(ctx contextx.Contextx, page, size int) (infos []*event.Activity, total int, err error)

	// NewWithMembers serve caller to create an activity
	NewWithMembers(ctx contextx.Contextx, name string, emails []string) (info *event.Activity, err error)

	// InviteMembers serve caller to invite members
	InviteMembers(ctx contextx.Contextx, id int64, emails []string) (info *event.Activity, err error)

	// ChangeName serve caller to change activity's name
	ChangeName(ctx contextx.Contextx, id int64, name string) (info *event.Activity, err error)

	// Delete serve caller to given id to remove an activity
	Delete(ctx contextx.Contextx, id int64) error
}

IBiz declare activity's service function

func CreateIBiz

func CreateIBiz(logger *zap.Logger, repo2 repo.IRepo, node *snowflake.Node) (IBiz, error)

CreateIBiz serve caller to create an IBiz

func NewImpl

func NewImpl(logger *zap.Logger, repo repo.IRepo, node *snowflake.Node) IBiz

NewImpl serve caller to create an IBiz

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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