genericNotes

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericNoteHistoryBean

type GenericNoteHistoryBean struct {
	Id          int       `json:"id" validate:"number"`
	NoteId      int       `json:"noteId" validate:"required"`
	Description string    `json:"description" validate:"required"`
	CreatedBy   int32     `json:"createdBy" validate:"number"`
	CreatedOn   time.Time `json:"createdOn" validate:"required"`
}

type GenericNoteHistoryService

type GenericNoteHistoryService interface {
	Save(tx *pg.Tx, bean *GenericNoteHistoryBean, userId int32) (*GenericNoteHistoryBean, error)
}

type GenericNoteHistoryServiceImpl

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

func NewGenericNoteHistoryServiceImpl

func NewGenericNoteHistoryServiceImpl(repositoryHistory repository.GenericNoteHistoryRepository, logger *zap.SugaredLogger) *GenericNoteHistoryServiceImpl

func (*GenericNoteHistoryServiceImpl) Save

type GenericNoteService

type GenericNoteService interface {
	Save(tx *pg.Tx, bean *repository.GenericNote, userId int32) (*bean.GenericNoteResponseBean, error)
	Update(bean *repository.GenericNote, userId int32) (*bean.GenericNoteResponseBean, error)
	GetGenericNotesForAppIds(appIds []int) (map[int]*bean.GenericNoteResponseBean, error)
}

type GenericNoteServiceImpl

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

func NewGenericNoteServiceImpl

func NewGenericNoteServiceImpl(genericNoteRepository repository.GenericNoteRepository, clusterNoteHistoryService GenericNoteHistoryService, userRepository repository2.UserRepository, logger *zap.SugaredLogger) *GenericNoteServiceImpl

func (*GenericNoteServiceImpl) GetGenericNotesForAppIds

func (impl *GenericNoteServiceImpl) GetGenericNotesForAppIds(appIds []int) (map[int]*bean.GenericNoteResponseBean, error)

func (*GenericNoteServiceImpl) Save

func (*GenericNoteServiceImpl) Update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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