plnmsg

package
v0.0.0-...-179f7ef Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanMessageEnv

type PlanMessageEnv struct {
	Logger          goKitLog.Logger
	PlanMessageRepo PlanMessageRepositoryInterface
	Common          lib.CommonService
}

func (*PlanMessageEnv) Create

func (env *PlanMessageEnv) Create(w http.ResponseWriter, r *http.Request)

func (*PlanMessageEnv) Delete

func (env *PlanMessageEnv) Delete(w http.ResponseWriter, r *http.Request)

func (*PlanMessageEnv) Get

func (env *PlanMessageEnv) Get(w http.ResponseWriter, r *http.Request)

func (*PlanMessageEnv) GetAll

func (env *PlanMessageEnv) GetAll(w http.ResponseWriter, r *http.Request)

func (*PlanMessageEnv) Update

func (env *PlanMessageEnv) Update(w http.ResponseWriter, r *http.Request)

type PlanMessageRepository

type PlanMessageRepository struct {
	Db     *gorm.DB
	Logger log.Logger
}

func (*PlanMessageRepository) Create

func (repo *PlanMessageRepository) Create(inputPlanMsg map[string]interface{}, planId string) (string, error)

func (*PlanMessageRepository) Delete

func (repo *PlanMessageRepository) Delete(planMessage models.PlanMessage) error

func (*PlanMessageRepository) Get

func (repo *PlanMessageRepository) Get(planMessageId string) (*models.PlanMessage, error)

func (*PlanMessageRepository) GetAll

func (repo *PlanMessageRepository) GetAll(limit string, offset string, orderby string, sort string, planId string) ([]*models.PlanMessage, string, error)

func (*PlanMessageRepository) Update

func (repo *PlanMessageRepository) Update(inputPlanMsg map[string]interface{}, planMessageId string) error

type PlanMessageRepositoryInterface

type PlanMessageRepositoryInterface interface {
	Create(inputPlanMsg map[string]interface{}, planId string) (string, error)
	GetAll(limit string, offset string, orderby string, sort string, planId string) ([]*models.PlanMessage, string, error)
	Get(planMessageId string) (*models.PlanMessage, error)
	Update(inputPlanMsg map[string]interface{}, planMessageId string) error
	Delete(planMessage models.PlanMessage) error
}

Jump to

Keyboard shortcuts

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