Documentation ¶
Index ¶
- type ConfigService
- func (s *ConfigService) GetEmailConfig(ctx context.Context) (*domain.EmailConfig, error)
- func (s *ConfigService) GetIndexConfig(ctx context.Context) (*domain.IndexConfig, error)
- func (s *ConfigService) GetSwitchStatusByTyp(ctx context.Context, typ string) (*domain.SwitchConfig, error)
- func (s *ConfigService) GetWebmasterInfo(ctx context.Context, typ string) (*domain.WebMasterConfig, error)
- func (s *ConfigService) IncreaseWebsiteViews(ctx context.Context) error
- type IConfigService
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) }
Click to show internal directories.
Click to hide internal directories.