service

package
v0.0.0-...-a783adc Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigService

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

func NewConfigService

func NewConfigService(repo repository.IConfigRepository) *ConfigService

func (*ConfigService) GetEmailConfig

func (s *ConfigService) GetEmailConfig(ctx context.Context) (*domain.EmailConfig, error)

func (*ConfigService) GetIndexConfig

func (s *ConfigService) GetIndexConfig(ctx context.Context) (*domain.IndexConfig, error)

func (*ConfigService) GetSwitchStatusByTyp

func (s *ConfigService) GetSwitchStatusByTyp(ctx context.Context, typ string) (*domain.SwitchConfig, error)

func (*ConfigService) GetWebmasterInfo

func (s *ConfigService) GetWebmasterInfo(ctx context.Context, typ string) (*domain.WebMasterConfig, error)

func (*ConfigService) IncreaseWebsiteViews

func (s *ConfigService) IncreaseWebsiteViews(ctx context.Context) error

type IConfigService

type IConfigService interface {
	GetWebmasterInfo(ctx context.Context, typ string) (*domain.WebMasterConfig, error)
	GetSwitchStatusByTyp(ctx context.Context, typ string) (*domain.SwitchConfig, error)
	IncreaseWebsiteViews(ctx context.Context) error
	GetEmailConfig(ctx context.Context) (*domain.EmailConfig, error)
	GetIndexConfig(ctx context.Context) (*domain.IndexConfig, error)
}

Jump to

Keyboard shortcuts

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