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

View Source
var ProviderSet = wire.NewSet(NewImpl)

ProviderSet is provider set for wire

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	// GetByID serve caller to given id to get an activity information
	GetByID(c *gin.Context)

	// List serve caller to list all activities
	List(c *gin.Context)

	// NewWithMembers serve caller to create a new activity with members email
	NewWithMembers(c *gin.Context)

	// ChangeName serve caller to change activity's name by id
	ChangeName(c *gin.Context)

	// Delete serve caller to delete an activity by id
	Delete(c *gin.Context)
}

IHandler declare activity api handlers

func CreateIHandler

func CreateIHandler(logger *zap.Logger, biz activity.IBiz) (IHandler, error)

CreateIHandler serve caller to create an IHandler

func NewImpl

func NewImpl(logger *zap.Logger, biz activity.IBiz) IHandler

NewImpl serve caller to create an IHandler

Jump to

Keyboard shortcuts

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