service

package
v0.0.0-...-e9922d5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IWebsiteConfigService

type IWebsiteConfigService interface {
	GetWebSiteConfig(ctx context.Context) (*domain.WebsiteConfig, error)
	GetEmailConfig(ctx context.Context) (*domain.EmailConfig, error)
	GetIndexConfig(ctx context.Context) (*domain.IndexConfig, error)
	GetFrontPostCount(ctx context.Context) (*domain.FrontPostCountConfig, error)
	GetSeoMetaConfig(ctx context.Context) (*domain.SeoMetaConfig, error)
	UpdateSeoMetaConfig(ctx context.Context, seoCfg *domain.SeoMetaConfig) error
	GetCommentConfig(ctx context.Context) (domain.CommentConfig, error)
	UpdateCommentConfig(ctx context.Context, commentConfig domain.CommentConfig) error
	GetFriendConfig(ctx context.Context) (domain.FriendConfig, error)
	UpdateFriendConfig(ctx context.Context, friendConfig domain.FriendConfig) error
	UpdateEmailConfig(ctx context.Context, emailCfg *domain.EmailConfig) error
	GetNoticeConfig(ctx context.Context) (domain.NoticeConfig, error)
	UpdateNoticeConfig(ctx context.Context, noticeCfg *domain.NoticeConfig) error
	UpdateNoticeConfigEnabled(ctx context.Context, enabled bool) error
	GetFrontPostCountConfig(ctx context.Context) (domain.FrontPostCountConfig, error)
	UpdateFrontPostCountConfig(ctx context.Context, cfg domain.FrontPostCountConfig) error
	AddRecordInWebsiteConfig(ctx context.Context, record string) error
	DeleteRecordInWebsiteConfig(ctx context.Context, record string) error
	GetPayConfig(ctx context.Context) (domain.PayInfoConfig, error)
	AddPayInfo(ctx *gin.Context, payInfoConfigElem domain.PayInfoConfigElem) error
	DeletePayInfo(ctx context.Context, payInfoConfigElem domain.PayInfoConfigElem) error
	GetSocialConfig(ctx context.Context) (domain.SocialInfoConfig, error)
	AddSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error
	UpdateSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error
	DeleteSocialInfo(ctx context.Context, id []byte) error
	GetAdminConfig(ctx context.Context) (*domain.AdminConfig, error)
	InitializeWebsite(ctx context.Context, adminConfig domain.AdminConfig, webSiteConfig domain.WebsiteConfig, emailConfig domain.EmailConfig) error
	UpdateWebsiteConfig(ctx context.Context, websiteConfig domain.WebsiteConfig, now time.Time) error
	GetTPSVConfig(ctx context.Context) (*domain.TPSVConfig, error)
	AddTPSVConfig(ctx context.Context, tpsv domain.TPSV) error
	DeleteTPSVConfigByKey(ctx context.Context, key string) error
	GetBaiduPushConfig(ctx context.Context) (*domain.Baidu, error)
	UpdatePushConfigByKey(ctx context.Context, key string, updates map[string]any) error
	GetCarouselConfig(ctx context.Context) (*domain.CarouselConfig, error)
	AddCarouselConfig(ctx context.Context, carouselElem domain.CarouselElem) error
	UpdateCarouselShowStatus(ctx context.Context, id string, show bool) error
	UpdateCarouselElem(ctx context.Context, carouselElem domain.CarouselElem) error
	DeleteCarouselElem(ctx context.Context, id string) error
	IsCarouselElemExist(ctx context.Context, id string) (bool, error)
}

type WebsiteConfigService

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

func (*WebsiteConfigService) AddCarouselConfig

func (s *WebsiteConfigService) AddCarouselConfig(ctx context.Context, carouselElem domain.CarouselElem) error

func (*WebsiteConfigService) AddPayInfo

func (s *WebsiteConfigService) AddPayInfo(ctx *gin.Context, payInfoConfigElem domain.PayInfoConfigElem) error

func (*WebsiteConfigService) AddRecordInWebsiteConfig

func (s *WebsiteConfigService) AddRecordInWebsiteConfig(ctx context.Context, record string) error

func (*WebsiteConfigService) AddSocialInfo

func (s *WebsiteConfigService) AddSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error

func (*WebsiteConfigService) AddTPSVConfig

func (s *WebsiteConfigService) AddTPSVConfig(ctx context.Context, tpsv domain.TPSV) error

func (*WebsiteConfigService) DeleteCarouselElem

func (s *WebsiteConfigService) DeleteCarouselElem(ctx context.Context, id string) error

func (*WebsiteConfigService) DeletePayInfo

func (s *WebsiteConfigService) DeletePayInfo(ctx context.Context, payInfoConfigElem domain.PayInfoConfigElem) error

func (*WebsiteConfigService) DeleteRecordInWebsiteConfig

func (s *WebsiteConfigService) DeleteRecordInWebsiteConfig(ctx context.Context, record string) error

func (*WebsiteConfigService) DeleteSocialInfo

func (s *WebsiteConfigService) DeleteSocialInfo(ctx context.Context, id []byte) error

func (*WebsiteConfigService) DeleteTPSVConfigByKey

func (s *WebsiteConfigService) DeleteTPSVConfigByKey(ctx context.Context, key string) error

func (*WebsiteConfigService) GetAdminConfig

func (s *WebsiteConfigService) GetAdminConfig(ctx context.Context) (*domain.AdminConfig, error)

func (*WebsiteConfigService) GetBaiduPushConfig

func (s *WebsiteConfigService) GetBaiduPushConfig(ctx context.Context) (*domain.Baidu, error)

func (*WebsiteConfigService) GetCarouselConfig

func (s *WebsiteConfigService) GetCarouselConfig(ctx context.Context) (*domain.CarouselConfig, error)

func (*WebsiteConfigService) GetCommentConfig

func (s *WebsiteConfigService) GetCommentConfig(ctx context.Context) (domain.CommentConfig, error)

func (*WebsiteConfigService) GetEmailConfig

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

func (*WebsiteConfigService) GetFriendConfig

func (s *WebsiteConfigService) GetFriendConfig(ctx context.Context) (domain.FriendConfig, error)

func (*WebsiteConfigService) GetFrontPostCount

func (s *WebsiteConfigService) GetFrontPostCount(ctx context.Context) (*domain.FrontPostCountConfig, error)

func (*WebsiteConfigService) GetFrontPostCountConfig

func (s *WebsiteConfigService) GetFrontPostCountConfig(ctx context.Context) (domain.FrontPostCountConfig, error)

func (*WebsiteConfigService) GetIndexConfig

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

func (*WebsiteConfigService) GetNoticeConfig

func (s *WebsiteConfigService) GetNoticeConfig(ctx context.Context) (domain.NoticeConfig, error)

func (*WebsiteConfigService) GetPayConfig

func (*WebsiteConfigService) GetSeoMetaConfig

func (s *WebsiteConfigService) GetSeoMetaConfig(ctx context.Context) (*domain.SeoMetaConfig, error)

func (*WebsiteConfigService) GetSocialConfig

func (s *WebsiteConfigService) GetSocialConfig(ctx context.Context) (domain.SocialInfoConfig, error)

func (*WebsiteConfigService) GetTPSVConfig

func (s *WebsiteConfigService) GetTPSVConfig(ctx context.Context) (*domain.TPSVConfig, error)

func (*WebsiteConfigService) GetWebSiteConfig

func (s *WebsiteConfigService) GetWebSiteConfig(ctx context.Context) (*domain.WebsiteConfig, error)

func (*WebsiteConfigService) InitializeWebsite

func (s *WebsiteConfigService) InitializeWebsite(ctx context.Context, adminConfig domain.AdminConfig, webSiteConfig domain.WebsiteConfig, emailConfig domain.EmailConfig) error

func (*WebsiteConfigService) IsCarouselElemExist

func (s *WebsiteConfigService) IsCarouselElemExist(ctx context.Context, id string) (bool, error)

func (*WebsiteConfigService) UpdateAdminConfig

func (s *WebsiteConfigService) UpdateAdminConfig(ctx context.Context, adminConfig domain.AdminConfig, now time.Time) error

func (*WebsiteConfigService) UpdateCarouselElem

func (s *WebsiteConfigService) UpdateCarouselElem(ctx context.Context, carouselElem domain.CarouselElem) error

func (*WebsiteConfigService) UpdateCarouselShowStatus

func (s *WebsiteConfigService) UpdateCarouselShowStatus(ctx context.Context, id string, show bool) error

func (*WebsiteConfigService) UpdateCommentConfig

func (s *WebsiteConfigService) UpdateCommentConfig(ctx context.Context, commentConfig domain.CommentConfig) error

func (*WebsiteConfigService) UpdateEmailConfig

func (s *WebsiteConfigService) UpdateEmailConfig(ctx context.Context, emailCfg *domain.EmailConfig) error

func (*WebsiteConfigService) UpdateFriendConfig

func (s *WebsiteConfigService) UpdateFriendConfig(ctx context.Context, friendConfig domain.FriendConfig) error

func (*WebsiteConfigService) UpdateFrontPostCountConfig

func (s *WebsiteConfigService) UpdateFrontPostCountConfig(ctx context.Context, cfg domain.FrontPostCountConfig) error

func (*WebsiteConfigService) UpdateNoticeConfig

func (s *WebsiteConfigService) UpdateNoticeConfig(ctx context.Context, noticeCfg *domain.NoticeConfig) error

func (*WebsiteConfigService) UpdateNoticeConfigEnabled

func (s *WebsiteConfigService) UpdateNoticeConfigEnabled(ctx context.Context, enabled bool) error

func (*WebsiteConfigService) UpdatePushConfigByKey

func (s *WebsiteConfigService) UpdatePushConfigByKey(ctx context.Context, key string, updates map[string]any) error

func (*WebsiteConfigService) UpdateSeoMetaConfig

func (s *WebsiteConfigService) UpdateSeoMetaConfig(ctx context.Context, seoCfg *domain.SeoMetaConfig) error

func (*WebsiteConfigService) UpdateSocialInfo

func (s *WebsiteConfigService) UpdateSocialInfo(ctx context.Context, socialInfo domain.SocialInfo) error

func (*WebsiteConfigService) UpdateWebsiteConfig

func (s *WebsiteConfigService) UpdateWebsiteConfig(ctx context.Context, websiteConfig domain.WebsiteConfig, now time.Time) error

Jump to

Keyboard shortcuts

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