attributes

package
v0.0.0-...-987a61a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostUrlKey     string = "url"
	API_SECRET_KEY string = "apiTokenSecret"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributesDto

type AttributesDto struct {
	Id     int    `json:"id"`
	Key    string `json:"key,omitempty"`
	Value  string `json:"value,omitempty"`
	Active bool   `json:"active"`
	UserId int32  `json:"-"`
}

type AttributesService

type AttributesService interface {
	AddAttributes(request *AttributesDto) (*AttributesDto, error)
	UpdateAttributes(request *AttributesDto) (*AttributesDto, error)
	GetById(id int) (*AttributesDto, error)
	GetActiveList() ([]*AttributesDto, error)
	GetByKey(key string) (*AttributesDto, error)
}

type AttributesServiceImpl

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

func NewAttributesServiceImpl

func NewAttributesServiceImpl(logger *zap.SugaredLogger, attributesRepository repository.AttributesRepository) *AttributesServiceImpl

func (AttributesServiceImpl) AddAttributes

func (impl AttributesServiceImpl) AddAttributes(request *AttributesDto) (*AttributesDto, error)

func (AttributesServiceImpl) GetActiveList

func (impl AttributesServiceImpl) GetActiveList() ([]*AttributesDto, error)

func (AttributesServiceImpl) GetById

func (impl AttributesServiceImpl) GetById(id int) (*AttributesDto, error)

func (AttributesServiceImpl) GetByKey

func (impl AttributesServiceImpl) GetByKey(key string) (*AttributesDto, error)

func (AttributesServiceImpl) UpdateAttributes

func (impl AttributesServiceImpl) UpdateAttributes(request *AttributesDto) (*AttributesDto, error)

Jump to

Keyboard shortcuts

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